Skip to content

4.0.0

Latest

Choose a tag to compare

@gmr gmr released this 04 Dec 18:38
4.0.0
9077216

Changed

  • Breaking: Queue now defaults to durable=True, so Queue(channel, name).declare() works on RabbitMQ 4.3, which rejects transient non-exclusive queues. If a non-durable queue with the same name already exists, the declare now fails with AMQPPreconditionFailed. For a transient queue, pass durable=False and exclusive=True. (#164)
  • Waiting calls now raise ConnectionClosed when the connection is closed, and do not return None. Connection.close() waits up to the connection timeout for Connection.CloseOk. (#168)
  • Updated development dependencies: filelock from 3.25.2 to 4.2.1, certifi from 2026.2.25 to 2026.10.19, virtualenv from 21.2.0 to 21.14.13, urllib3 from 2.7.0 to 2.8.0, mkdocs-material from 9.7.6 to 9.7.7, pymdown-extensions from 10.21.3 to 11.0.1. (#159, #160, #161, #162, #165, #166, #167)

Fixed

  • Fixed hangs when a channel or the connection closes unexpectedly (#168):
    • A channel that RabbitMQ closed (for example, after a failed passive declare) now raises ChannelClosedException on the next call.
    • An exception in a with connection.channel() block now closes the channel on the server, so the next channel does not fail with 504 CHANNEL_ERROR.
    • When the socket drops or RabbitMQ closes the connection, all waiting consumers now raise, and Connection.closed is True.
    • A reconnect now waits for the AMQP handshake.
    • Connection.close() now always stops the IO and heartbeat threads.
  • Fixed the integration tests for RabbitMQ 4.3. (#163)