| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
These are not the same constants, rabbitmq-c fails on Win32 as a result.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
As a performance optimization in the send path, add an AMQP_SF_MORE flag
indicating that more data is intended to be sent, and that packets shouldn't be
sent out on the wire unless there is a full packet's worth of data available.
Use this to specify MSG_MORE to send() on Linux.
|
|
|
|
|
| |
These constants are already defined in the Win32, and they're being incorrectly
redefined by rabbitmq-c.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
When tcp socket is in non-blocking mode, return
AMQP_STATUS_PRIVATE_SOCKET_NEEDREAD when socket doesn't have any data in it.
|
|
|
|
| |
C89 compilers can't do mixed definitions and code.
|
|
|
|
|
|
|
| |
Check to state of socket when doing open/read/write/close to prevent double-open
and double-close issues with the socket implementation.
Fixes #228
|
|
|
|
|
|
|
| |
Fix a bug that manifested itself by the broker disconnecting the client
with an invalid_frame_end_marker error. The cause was when send()
returned less than the size of the buffer to be sent we weren't using
the correct parameters when restarting the send call.
|
| |
|
|
|
|
|
| |
Get rid of experimental amqp_socket_error interface. Errors are returned
using the error codes from the primary function
|
|
|
|
|
|
|
|
| |
Improve the socket interface by making the amqp_connection_state_t
object the amqp_socket_t owner, and tie its lifetime to the connection's
lifetime. This prevents a class of silly errors where the socket object
isn't freed, or the socket object is assigned to two different
connection objects
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Publicly define the error codes returned from the various public API
functions. The error codes are defined in the amqp_status_enum and are
all negative in value to work with functions that return positive
values.
OS and SSL specific codes are no longer munged into the error code, as
it is unlikely for that information to be useful to library users.
|
| |
|
| |
|
| |
|
|
Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
|