Amqp

Latest version: v5.2.0

Safety actively analyzes 629765 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 13

2.1.3

=====
:release-date: 2016-12-07 06:00 P.M PST
:release-by: Ask Solem

- Fixes compatibility with Python 2.7.5 and below (Issue 107).

.. _version-2.1.2:

2.1.2

=====
:release-date: 2016-12-07 02:00 P.M PST

- Linux: Now sets the :data:`~socket.TCP_USER_TIMEOUT` flag if available
for better failed connection detection.

Contributed by **Jelte Fennema**.

The timeout is set to the ``connect_timeout`` value by default,
but can also be specified by using the ``socket_settings`` argument
to :class:`~amqp.Connection`:

.. code-block:: python

from amqp import Connection
from amqp.platform import TCP_USER_TIMEOUT

conn = Connection(socket_settings={
TCP_USER_TIMEOUT: int(60 * 1000), six minutes in ms.
})

When using :pypi:`Kombu` this can be specified as part of the
``transport_options``:

.. code-block:: python

from amqp.platform import TCP_USER_TIMEOUT
from kombu import Connection

conn = Connection(transport_options={
'socket_settings': {
TCP_USER_TIMEOUT: int(60 * 1000), six minutes in ms.
},
})

Or when using :pypi:`Celery` it can be specified using the
``broker_transport_options`` setting:

.. code-block:: python

from amqp.platform import TCP_USER_TIMEOUT
from celery import Celery

app = Celery()
app.conf.update(
broker_transport_options={
TCP_USER_TIMEOUT: int(60 * 1000), six minutes in ms.
}
)

- Python compatibility: Fixed compatibility when using the python ``-b`` flag.

Fix contributed by Jon Dufresne.

.. _version-2.1.1:

2.1.1

=====
:release-date: 2016-10-13 06:36 P.M PDT
:release-by: Ask Solem

.. _version-2.1.0:

- **Requirements**

- Now depends on :ref:`Vine 1.1.3 <vine:version-1.1.3>`.

- Frame writer: Account for overhead when calculating frame size.

The client would crash if the message was within a certain size.

- Fixed struct unicode problems (108)

* Standardize pack invocations on bytestrings.

* Leave some literals as strings to enable interpolation.

* Fix flake8 fail.

Fix contributed by **Brendan Smithyman**.

2.1.0

=====
:release-date: 2016-09-07 04:23 P.M PDT
:release-by: Ask Solem

- **Requirements**

- Now depends on :ref:`Vine 1.1.2 <vine:version-1.1.2>`.

- Now licensed under the BSD license!

Thanks to Barry Pederson for approving the license change,
which unifies the license used across all projects in the Celery
organization.

- Datetimes in method frame arguments are now handled properly.

- Fixed compatibility with Python <= 2.7.6

- Frame_writer is no longer a generator, which should solve
a rare "generator already executing" error (Issue 103).

.. _version-2.0.3:

2.0.3

=====
:release-date: 2016-07-11 08:00 P.M PDT
:release-by: Ask Solem

- SSLTransport: Fixed crash "no attribute sslopts" when ``ssl=True``
(Issue 100).

- Fixed incompatible argument spec for ``Connection.Close`` (Issue 45).

This caused the RabbitMQ server to raise an exception (INTERNAL ERROR).

- Transport: No longer implements `__del__` to make sure gc can collect
connections.

It's the responsibility of the caller to close connections, this was
simply a relic from the amqplib library.

.. _version-2.0.2:

2.0.2

=====
:release-date: 2016-06-10 5:40 P.M PDT
:release-by: Ask Solem

- Python 3: Installation requirements ended up being a generator
and crashed setup.py.

Fix contributed by ChangBo Guo(gcb).

- Python <= 2.7.7: struct.pack arguments cannot be unicode

Fix contributed by Alan Justino and Xin Li.

- Python 3.4: Fixed use of `bytes % int`.

Fix contributed by Alan Justino.

- Connection/Transport: Fixed handling of default port.

Fix contributed by Quentin Pradet.

.. _version-2.0.1:

Page 6 of 13

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.