xdstack / httpsqs

Automatically exported from code.google.com/p/httpsqs
1 stars 0 forks source link

May overlap original msg when just enqueue never dequeue. #20

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create a queue
2. set the maxqueue a little small, say: 10
3. just enqueue msgs, never dequeue, the 11st msg will overlap the 1st msg

Please provide any additional information below.
原因在于第303行判断队列已满时遗漏一种情况: (0 == 
queue_get_value && queue_put_value > maxqueue_num)。

Original issue reported on code.google.com by Doc...@gmail.com on 9 Mar 2011 at 9:04

GoogleCodeExporter commented 8 years ago
fix this bug on HTTPSQS 1.6

Original comment by blog.s13...@gmail.com on 26 Apr 2011 at 7:54