Reported by Alex McGregor (1224515189|%O ago)
Following PAL script causes amq_server to get confused:
<?xml?> <pal script = "amq_pal_gen" > <session> <repeat times = "10"> <queue_declare queue = "my/test/queue" /> <queue_delete queue = "my/test/queue" /> </repeat> </session> </pal>
It looks like queues are not properly deleted. Server ends with memory leakage. Affects all versions of OpenAMQ. Fix is in amq_server_method.c:5470, replace amq_queue_unlink() with amq_queue_destroy(); Have tested with 1000 declares/destroys, this works. Also basic tests (amq_client) work with change.
Run amq_server like this to see actual queue creation/destruction:
amq_server --debug_queue 1
You'll see before fix queues are destroyed at server exit only, after fix they are destroyed properly.
No files attached to this page.