gregoriusxu / booksleeve

Automatically exported from code.google.com/p/booksleeve
Other
0 stars 0 forks source link

Blocking List Pop seems to swallow some messages #20

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. set up a 'reader' application to dump messages from the list. See: 
https://gist.github.com/3031281
2. add items to the list (eg using redis CLI or whatever)
3. if you add items before it times out, the 'reader' should pick them up ok. 
if you add after it times out, it *usually* seems to swallow them.

What is the expected output? What do you see instead?
I expect the item added to the list to always be received and be printed out.

What version of the product are you using? On what operating system?
booksleeve , both from nuget and latest from hg

Please provide any additional information below.
if the pop operation times out (which it seems to, even though the timeout 
parameter is set to zero), *most of the time*, the messages will start getting 
swallowed.

I tried tracing it through the debugger and the message is definitely received 
through the 'ReadSingleResult' however I had a hard time determining where it 
was going versus where it should be going after that

Original issue reported on code.google.com by p...@webscale.com.au on 2 Jul 2012 at 5:41

GoogleCodeExporter commented 8 years ago
connection.Wait is not a good choice here, as it will be using the SyncTimeout, 
which is less than the operations intrinsic timeout; you should wait on the 
task explicitly.

Original comment by marc.gravell on 17 Oct 2012 at 1:39