Opened 12 years ago

Closed 12 years ago

#5354 closed Bugs (invalid)

message_queue doesn't work if size of message < max size of messages

Reported by: remig@… Owned by: Ion Gaztañaga
Milestone: To Be Determined Component: interprocess
Version: Boost 1.46.0 Severity: Problem
Keywords: message_queue Cc:

Description

message_queue doesn't work if size of message < max size of messages;

In message_queue.hpp I've found the following lines:

...

Check if buffer is big enough for any message if (buffer_size < p_hdr->m_max_msg_size) {

throw interprocess_exception(size_error);

}

...

I think it should be (buffer_size > p_hdr->m_max_msg_size)

Change History (1)

comment:1 by remig@…, 12 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.