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
c#-4.0
relayjs
gis
cmd
alpha
ravendb
awesome-wm
session-variables
php-7.1
phaser
static-libraries
circuit
percona
clearcase-ucm
highlight.js
propel
undefined
database-replication
beyondcompare
textfield
errorlevel
icloud-api
vlsi
qhull
semantic-analysis
maquette
typo3-6.2.x
assistant
log4js-node
libuv
libssl
vision
newline
bpel
socialengine
yadcf
grails-3.1
atl
stacked
c11
unobtrusive-validation
lumberjack
eclipse-scout
sql-server-agent
node-sass
scorm
google-datalayer
paxos
winscp-net
yii2-extension
tactic
worker-thread
sqldf
spring-cache
topbeat
angular-strap
vmware-tools
multi-level
angstrom-linux
hill-climbing
design-by-contract
ptrace
phpcas
r-tree
jms2
retina
varargs
fluid-dynamics
truevault
codeigniter-url
applescript-objc
internet-connection
openexr
message-driven-bean
ms-project-server-2010
jmapviewer
coverflow
cos
eventual-consistency
django-nonrel
angularjs-controller
eclipse-templates
gnu-prolog
deobfuscation
genshi
invite
winbugs14
jmock
routedevent
compiler-specific
webkit.net
temporal-database
django-notification

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