poller


Socket.ReceiveReady is not fired despite available messages


I've started to explore NetMQ 3.3.0.11 and ran into an issue with the use of Poller.
I try to achieve that the poller polls for about 1s and then stops and allows something else to be done before it resumes polling for 1s and so on.
I have the following code:
var poller = new Poller (client) { PollTimeout = 10 };
while (true)
{
for (var poll = 0; poll < 100; poll++)
{
poller.PollOnce ();
}
do_something;
}
The problem I'm facing is that during that polling period the Client.ReceiveReady event is not fired even though a message is ready to be picked up. And a InvalidOperationException stating Poller is started is raised.
Any idea what I'm doing wrong?
First try to work with version 3.3.0.12-rc1, it fixes a lot of issues, probably also the one you are suffering from.
Also regarding the do_something, I suggest working with NetMQTimer instead of PollOnce (use PollTillCanceled instead). You can also use NetMQScheduler for the do something stuff.

Related Links

Socket.ReceiveReady is not fired despite available messages

Categories

HOME
pdf
blogger
reflection
c#-4.0
path-finding
layout
cmd
rdf
indesign
node-pdfkit
mapserver
visual-studio-cordova
samoa
google-cloud-speech
lucene.net
scichart
intentfilter
shopware
virtualdub
web-api-testing
primitive
nouislider
pdb
http-get
usbserial
subset-sum
xmlreader
form-data
android-nestedscrollview
geopositioning
http-referer
occlusion
ensembles
janrain
password-encryption
auto-update
termination
zip4j
jlink
svmlight
brightcove
hittest
nested-sets
google-feed-api
vmware-tools
adxstudio-portals
django-debug-toolbar
fuzzy-search
moveit
make-install
goose
itextpdf
two-factor-authentication
historian
jfugue
separator
ora-00900
purge
security-testing
ionic
service-accounts
sysinternals
census
knuth
cdt
android-nested-fragment
phalanger
java-metro-framework
markers
project-planning
sgen
elliptic-curve
cloud-connect
jplaton
gwt-rpc
android-screen-support
ember-app-kit
first-responder
cascalog
onsubmit
hgsubversion
eclipse-templates
gnustep
zpt
cinema-4d
iphone-web-app
.nettiers

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App