Path to this page:
Subject: CVS commit: pkgsrc/net/py-amqp
From: Adam Ciarcinski
Date: 2019-01-15 12:42:59
Message id: 20190115114259.92B71FB16@cvs.NetBSD.org
Log Message:
py-amqp: updated to 2.4.0
2.4.0
- Fix inconsistent frame_handler return value.
The function returned by frame_handler is meant to return True
once the complete message is received and the callback is called,
False otherwise.
This fixes the return value for messages with a body split across
multiple frames, and heartbeat frames.
- Don't default content_encoding to utf-8 for bytes.
This is not an acceptable default as the content may not be
valid utf-8, and even if it is, the producer likely does not
expect the message to be decoded by the consumer.
- Fix encoding of messages with multibyte characters.
Body length was previously calculated using string length,
which may be less than the length of the encoded body when
it contains multibyte sequences. This caused the body of
the frame to be truncated.
- Respect content_encoding when encoding messages.
Previously the content_encoding was ignored and messages
were always encoded as utf-8. This caused messages to be
incorrectly decoded if content_encoding is properly respected
when decoding.
- Fix AMQP protocol header for AMQP 0-9-1.
- Add support for Python 3.7.
Change direct SSLSocket instantiation with wrap_socket.
Added Python 3.7 to CI.
- Add support for field type "x" (byte array).
- If there is an exception raised on Connection.connect or Connection.close,
ensure that the underlying transport socket is closed.
- TCP_USER_TIMEOUT has to be excluded from KNOWN_TCP_OPTS in BSD platforms.
- Handle negative acknowledgments.
- Added integration tests.
- Fix basic_consume() with no consumer_tag provided.
- Improved empty AMQPError string representation.
- Drain events before publish.
- Don't revive channel when connection is closing.
Files: