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
blogger
grep
xmpp
framework7
sqlite-net-extensions
graphql
electronics
echarts
facebook-php-sdk
here-api
pc
facebook-page
lldb
grails3
custom-wordpress-pages
autocad-plugin
one-to-many
fgetcsv
publish
neo4j-spatial
newline
preg-match
socialengine
nameservers
catch-all
perlin-noise
usbserial
android-kernel
multilingual
occlusion
document.write
mesos-chronos
ibpy
spring-security-kerberos
youcompleteme
dds
csound
slickedit
tactic
redundancy
background-service
azure-virtual-network
nsfilemanager
ctest
autorest
flash-cs5
pagedlist
moveit
essence
hover-over
whois
goose
revolution-r
netmq
jms2
endeca-workbench
tarjans-algorithm
mmc
p2
python-green
modalpopup
googlemock
xojo
android-radiobutton
aapt
android-2.2-froyo
mcts
floating-point-precision
page-layout
dbconnection
labwindows
removeclass
asyncfileupload
assembly-loading
vdsp
tomcat-valve
netbeans-7.1
w3wp.exe
web-application-design
ncqrs
sustainable-pace
text-coloring
mediarss
rtml
caching-application-block





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