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
java
xamarin
client
keras
homebrew
view
alfresco
bookshelf.js
c#-2.0
acquia
google-translate
kentor-authservices
quicklook
modx-revolution
dynamics-crm-online
google-cloud-speech
swiftlint
kryo
riot.js
extjs5
tibco-mdm
icloud-api
emgucv
tdd
fish
pepper
chromebook
pingfederate
social-media
windows-server-2000
microsoft-chart-controls
bluestacks
twilio-api
bytecode-manipulation
mixture-model
service-discovery
ansible-playbook
ncalc
sql-server-agent
ibpy
appcompat
pnotify
colorama
feeds
r-forge
zendesk-app
flow-control
minimization
background-service
migradoc
url-masking
fody
trash
django-debug-toolbar
autorest
qpid
fuzzy-search
websitepanel
sigabrt
hexdump
dataview
oauth2client
freedesktop.org
hsv
cannon.js
content-length
interrupted-exception
sankey-diagram
bridge.net
rake-task
tablelayout
file-copying
cctv
reactfx
mysql-error-1062
mysqltuner
ivyde
inbox
yui-compressor
enterprisedb
mhtml
dmoz
ocx
enter
dotnethighcharts
nsdatecomponents
xtype
android-sdk-2.1
iphone-web-app
lang
preference
ext3
ncqrs
memory-size
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