Opened 12 years ago

Closed 12 years ago

#4164 closed Bugs (invalid)

message_queue delays

Reported by: eran <eran@…> Owned by: Ion Gaztañaga
Milestone: Boost 1.43.0 Component: interprocess
Version: Boost 1.42.0 Severity: Problem
Keywords: Cc:

Description

Hello,

I've encountered an issue with send/receive delays while using interprocess::message_queue.

Although mostly it takes 1-2 microseconds to send/receive a message, about 5% of the messages are delayed for 1-2 milliseconds.

It seems that at revision 34837 (Aug06), which was a major update, the lines that check for 'was_empty' and 'was_full' before using the condition's notify, were commented out.

Fix: I've uncommented those lines and everything seems fine now - no delays. Also, this seems to fix another issue in my platform (Win7) - a forceful shutdown of a client using message_queue caused, sometimes, a termination of the server. (again, related to the condition variable)

Attached a diff file for this fix.

Attachments (1)

fix_delay.patch (1.2 KB ) - added by eran <eran@…> 12 years ago.

Download all attachments as: .zip

Change History (2)

by eran <eran@…>, 12 years ago

Attachment: fix_delay.patch added

comment:1 by Ion Gaztañaga, 12 years ago

Resolution: invalid
Status: newclosed

Uncommenting those lines lead to some hangs, so it is not a valid solution. I'm closing the bug.

Note: See TracTickets for help on using tickets.