Skip to content

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

@GoogleCodeExporter

Description

@GoogleCodeExporter
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 [email protected] on 9 Mar 2011 at 9:04

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions