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
maven
ms-access
ionic-framework
openlayers
osgi
isabelle
tizen
reserved
raspberry-pi
objectgears
adb
tizen-web-app
electronics
flyway4
in-app-purchase
php-7.1
n-gram
messages
clojurescript
opentracing
finite-automata
oxyplot
conemu
functional-testing
cultureinfo
emgucv
qhull
fish
kannel
react-css-modules
windows-server-2000
twilio-api
oracle-fusion-middleware
gtrendsr
framemaker
wallpaper
git-merge
xcode-extension
swisscomdev
document.write
lumberjack
sas-visual-analytics
ws-security
texmaker
nomethoderror
reactive-cocoa-5
auto-update
rainbowtable
chain-builder
revapi
zip4j
celery-task
csound
knockout-components
epson
arrow-keys
webdriverjs
yt-project
nested-sets
android-fonts
file-writing
simplewebrtc
ubuntu-10.04
superstack
qtableview
lemon
tmuxinator
pundit
android-listview
microbenchmark
ami
xojo
article
dml
jubula
mechanize-ruby
typo3-neos
aqtime
jplaton
django-nonrel
seed
mqx
smtp-auth
anonymous-methods
simba
automount
armcc
errai
punbb
javax.script
servicehost
pyinotify
site.master
web-application-design
eqatec
procedural-music
data-acquisition

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