Changelog 27 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103
  1. Changes
  2. =======
  3. py-amqp is fork of amqplib used by Kombu containing additional features and improvements.
  4. The previous amqplib changelog is here:
  5. http://code.google.com/p/py-amqplib/source/browse/CHANGES
  6. .. _version-2.4.1:
  7. 2.4.1
  8. =====
  9. :release-date: 2018-04-02 9:00 A.M UTC+2
  10. :release-by: Omer Katz
  11. - To avoid breaking the API basic_consume() now returns the consumer tag
  12. instead of a tuple when nowait is True.
  13. Fix contributed by **Matus Valo**
  14. - Fix crash in basic_publish when broker does not support connection.blocked
  15. capability.
  16. Fix contributed by **Matus Valo**
  17. - read_frame() is now Python 3 compatible for large payloads.
  18. Fix contributed by **Antonio Ojea**
  19. - Support float read_timeout/write_timeout.
  20. Fix contributed by **:github_user:`cadl`**
  21. - Always treat SSLError timeouts as socket timeouts.
  22. Fix contributed by **Dirk Mueller** and **Antonio Ojea**
  23. - Treat EWOULDBLOCK as timeout.
  24. This fixes a regression on Windows from 2.4.0.
  25. Fix contributed by **Lucian Petrut**
  26. Test Coverage & CI Improvements:
  27. - **Matus Valo**
  28. - **Antonio Ojea**
  29. .. _version-2.4.0:
  30. 2.4.0
  31. =====
  32. :release-date: 2018-13-01 1:00 P.M UTC+2
  33. :release-by: Omer Katz
  34. - Fix inconsistent frame_handler return value.
  35. The function returned by frame_handler is meant to return True
  36. once the complete message is received and the callback is called,
  37. False otherwise.
  38. This fixes the return value for messages with a body split across
  39. multiple frames, and heartbeat frames.
  40. Fix contributed by **:github_user:`evanunderscore`**
  41. - Don't default content_encoding to utf-8 for bytes.
  42. This is not an acceptable default as the content may not be
  43. valid utf-8, and even if it is, the producer likely does not
  44. expect the message to be decoded by the consumer.
  45. Fix contributed by **:github_user:`evanunderscore`**
  46. - Fix encoding of messages with multibyte characters.
  47. Body length was previously calculated using string length,
  48. which may be less than the length of the encoded body when
  49. it contains multibyte sequences. This caused the body of
  50. the frame to be truncated.
  51. Fix contributed by **:github_user:`evanunderscore`**
  52. - Respect content_encoding when encoding messages.
  53. Previously the content_encoding was ignored and messages
  54. were always encoded as utf-8. This caused messages to be
  55. incorrectly decoded if content_encoding is properly respected
  56. when decoding.
  57. Fix contributed by **:github_user:`evanunderscore`**
  58. - Fix AMQP protocol header for AMQP 0-9-1.
  59. Previously it was set to a different value for unknown reasons.
  60. Fix contributed by **Carl Hörberg**
  61. - Add support for Python 3.7.
  62. Change direct SSLSocket instantiation with wrap_socket.
  63. Added Python 3.7 to CI.
  64. Fix contributed by **Omer Katz** and **:github_user:`avborhanian`**
  65. - Add support for field type "x" (byte array).
  66. Fix contributed by **Davis Kirkendall**
  67. - If there is an exception raised on Connection.connect or Connection.close,
  68. ensure that the underlying transport socket is closed.
  69. Adjust exception message on connection errors as well.
  70. Fix contributed by **:github_user:`tomc797`**
  71. - TCP_USER_TIMEOUT has to be excluded from KNOWN_TCP_OPTS in BSD platforms.
  72. Fix contributed by **George Tantiras**
  73. - Handle negative acknowledgments.
  74. Fix contributed by **Matus Valo**
  75. - Added integration tests.
  76. Fix contributed by **Matus Valo**
  77. - Fix basic_consume() with no consumer_tag provided.
  78. Fix contributed by **Matus Valo**
  79. - Improved empty AMQPError string representation.
  80. Fix contributed by **Matus Valo**
  81. - Drain events before publish.
  82. This is needed to capture out of memory messages for clients that only
  83. publish. Otherwise on_blocked is never called.
  84. Fix contributed by **Jelte Fennema** and **Matus Valo**
  85. - Don't revive channel when connection is closing.
  86. When connection is closing don't raise error when Channel.Close method is received.
  87. Fix contributed by **Matus Valo**
  88. .. _version-2.3.2:
  89. 2.3.2
  90. =====
  91. :release-date: 2018-05-29 15:30 P.M UTC+3
  92. :release-by: Omer Katz
  93. - Fix a regression that occurs when running amqp on OSX.
  94. TCP_USER_TIMEOUT is not available when running on OSX.
  95. We now remove it from the set of known TCP options.
  96. Fix contributed by **Ofer Horowitz**
  97. .. _version-2.3.1:
  98. 2.3.1
  99. =====
  100. :release-date: 2018-05-28 16:30 P.M UTC+3
  101. :release-by: Omer Katz
  102. - Fix a regression that occurs when running amqp under Python 2.7.
  103. #182 mistakenly replaced a type check with unicode to string_t which is str
  104. in Python 2.7. text_t should have been used instead.
  105. This is now fixed and the tests have been adjusted to ensure this never regresses
  106. again.
  107. Fix contributed by **Omer Katz**
  108. .. _version-2.3.0:
  109. 2.3.0
  110. =====
  111. :release-date: 2018-05-27 16:30 P.M UTC+3
  112. :release-by: Omer Katz
  113. - Cleanup TCP configurations across platforms and unified defaults.
  114. Fix contributed by **Dan Chowdhury**
  115. - Fix for TypeError when setting socket options.
  116. Fix contributed by **Matthias Erll**
  117. - Ensure that all call sites for decoding bytes to str allow surrogates,
  118. as the encoding mechanism now supports.
  119. Fix contributed by **Stephen Hatch**
  120. - Don't send AAAA DNS request when domain resolved to IPv4 address.
  121. Fix contributed by **Ihar Hrachyshka & Omer Katz**
  122. - Support for EXTERNAL authentication and specific login_method.
  123. Fix contributed by **Matthias Erll**
  124. - If the old python-gssapi library is installed the gssapi module will be available.
  125. We now ensure that we only use the new gssapi library.
  126. Fix contributed by **Jacopo Notarstefano**
  127. Code Cleanups & Test Coverage:
  128. - :github_user:`eric-eric-eric`
  129. - **Omer Katz**
  130. - **Jon Dufresne**
  131. - **Matthias Urlichs**
  132. .. _version-2.2.2:
  133. 2.2.2
  134. =====
  135. :release-date: 2017-09-14 09:00 A.M UTC+2
  136. :release-by: Omer Katz
  137. - Sending empty messages no longer hangs. Instead an empty message is sent correctly.(addresses #151)
  138. Fix contributed by **Christian Blades**
  139. - Fixed compatibility issues in UTF-8 encoding behavior between Py2/Py3 (#164)
  140. Fix contributed by **Tyler James Harden**
  141. .. _version-2.2.1:
  142. 2.2.1
  143. =====
  144. :release-date: 2017-07-14 09:00 A.M UTC+2
  145. :release-by: Omer Katz
  146. - Fix implicit conversion from bytes to string on the connection object. (Issue #155)
  147. This issue has caused Celery to crash on connection to RabbitMQ.
  148. Fix contributed by **Omer Katz**
  149. .. _version-2.2.0:
  150. 2.2.0
  151. =====
  152. :release-date: 2017-07-12 10:00 A.M UTC+2
  153. :release-by: Ask Solem
  154. - Fix random delays in task execution.
  155. This is a bug that caused performance issues due to polling timeouts that occur when receiving incomplete AMQP frames. (Issues #3978 #3737 #3814)
  156. Fix contributed by **Robert Kopaczewski**
  157. - Calling ``conn.collect()`` multiple times will no longer raise an ``AttributeError`` when no channels exist.
  158. Fix contributed by **Gord Chung**
  159. - Fix compatibility code for Python 2.7.6.
  160. Fix contributed by **Jonathan Schuff**
  161. - When running in Windows, py-amqp will no longer use the unsupported TCP option TCP_MAXSEG.
  162. Fix contributed by **Tony Breeds**
  163. - Added support for setting the SNI hostname header.
  164. The SSL protocol version is now set to SSLv23
  165. Contributed by **Dhananjay Sathe**
  166. - Authentication mechanisms were refactored to be more modular. GSSAPI authentication is now supported.
  167. Contributed by **Alexander Dutton**
  168. - Do not reconnect on collect.
  169. Fix contributed by **Gord Chung**
  170. .. _version-2.1.4:
  171. 2.1.4
  172. =====
  173. :release-date: 2016-12-14 03:40 P.M PST
  174. :release-by: Ask Solem
  175. - Removes byte string comparison warnings when running under ``python -b``.
  176. Fix contributed by **Jon Dufresne**.
  177. - Linux version parsing broke when the version included a '+' character
  178. (Issue #119).
  179. - Now sets default TCP settings for platforms that support them (e.g. Linux).
  180. +----------------------+---------------+
  181. | Constant | Value |
  182. +======================+===============+
  183. | ``TCP_KEEPIDLE`` | ``60`` |
  184. +----------------------+---------------+
  185. | ``TCP_KEEPINTVL`` | ``10`` |
  186. +----------------------+---------------+
  187. | ``TCP_KEEPCNT`` | ``9`` |
  188. +----------------------+---------------+
  189. | ``TCP_USER_TIMEOUT`` | ``1000`` (1s) |
  190. +----------------------+---------------+
  191. This will help detecting the socket being closed earlier, which is very
  192. important in failover and load balancing scenarios.
  193. .. _version-2.1.3:
  194. 2.1.3
  195. =====
  196. :release-date: 2016-12-07 06:00 P.M PST
  197. :release-by: Ask Solem
  198. - Fixes compatibility with Python 2.7.5 and below (Issue #107).
  199. .. _version-2.1.2:
  200. 2.1.2
  201. =====
  202. :release-date: 2016-12-07 02:00 P.M PST
  203. - Linux: Now sets the :data:`~socket.TCP_USER_TIMEOUT` flag if available
  204. for better failed connection detection.
  205. Contributed by **Jelte Fennema**.
  206. The timeout is set to the ``connect_timeout`` value by default,
  207. but can also be specified by using the ``socket_settings`` argument
  208. to :class:`~amqp.Connection`:
  209. .. code-block:: python
  210. from amqp import Connection
  211. from amqp.platform import TCP_USER_TIMEOUT
  212. conn = Connection(socket_settings={
  213. TCP_USER_TIMEOUT: int(60 * 1000), # six minutes in ms.
  214. })
  215. When using :pypi:`Kombu` this can be specified as part of the
  216. ``transport_options``:
  217. .. code-block:: python
  218. from amqp.platform import TCP_USER_TIMEOUT
  219. from kombu import Connection
  220. conn = Connection(transport_options={
  221. 'socket_settings': {
  222. TCP_USER_TIMEOUT: int(60 * 1000), # six minutes in ms.
  223. },
  224. })
  225. Or when using :pypi:`Celery` it can be specified using the
  226. ``broker_transport_options`` setting:
  227. .. code-block:: python
  228. from amqp.platform import TCP_USER_TIMEOUT
  229. from celery import Celery
  230. app = Celery()
  231. app.conf.update(
  232. broker_transport_options={
  233. TCP_USER_TIMEOUT: int(60 * 1000), # six minutes in ms.
  234. }
  235. )
  236. - Python compatibility: Fixed compatibility when using the python ``-b`` flag.
  237. Fix contributed by Jon Dufresne.
  238. .. _version-2.1.1:
  239. 2.1.1
  240. =====
  241. :release-date: 2016-10-13 06:36 P.M PDT
  242. :release-by: Ask Solem
  243. .. _version-2.1.0:
  244. - **Requirements**
  245. - Now depends on :ref:`Vine 1.1.3 <vine:version-1.1.3>`.
  246. - Frame writer: Account for overhead when calculating frame size.
  247. The client would crash if the message was within a certain size.
  248. - Fixed struct unicode problems (#108)
  249. * Standardize pack invocations on bytestrings.
  250. * Leave some literals as strings to enable interpolation.
  251. * Fix flake8 fail.
  252. Fix contributed by **Brendan Smithyman**.
  253. 2.1.0
  254. =====
  255. :release-date: 2016-09-07 04:23 P.M PDT
  256. :release-by: Ask Solem
  257. - **Requirements**
  258. - Now depends on :ref:`Vine 1.1.2 <vine:version-1.1.2>`.
  259. - Now licensed under the BSD license!
  260. Thanks to Barry Pederson for approving the license change,
  261. which unifies the license used across all projects in the Celery
  262. organization.
  263. - Datetimes in method frame arguments are now handled properly.
  264. - Fixed compatibility with Python <= 2.7.6
  265. - Frame_writer is no longer a generator, which should solve
  266. a rare "generator already executing" error (Issue #103).
  267. .. _version-2.0.3:
  268. 2.0.3
  269. =====
  270. :release-date: 2016-07-11 08:00 P.M PDT
  271. :release-by: Ask Solem
  272. - SSLTransport: Fixed crash "no attribute sslopts" when ``ssl=True``
  273. (Issue #100).
  274. - Fixed incompatible argument spec for ``Connection.Close`` (Issue #45).
  275. This caused the RabbitMQ server to raise an exception (INTERNAL ERROR).
  276. - Transport: No longer implements `__del__` to make sure gc can collect
  277. connections.
  278. It's the responsibility of the caller to close connections, this was
  279. simply a relic from the amqplib library.
  280. .. _version-2.0.2:
  281. 2.0.2
  282. =====
  283. :release-date: 2016-06-10 5:40 P.M PDT
  284. :release-by: Ask Solem
  285. - Python 3: Installation requirements ended up being a generator
  286. and crashed setup.py.
  287. Fix contributed by ChangBo Guo(gcb).
  288. - Python <= 2.7.7: struct.pack arguments cannot be unicode
  289. Fix contributed by Alan Justino and Xin Li.
  290. - Python 3.4: Fixed use of `bytes % int`.
  291. Fix contributed by Alan Justino.
  292. - Connection/Transport: Fixed handling of default port.
  293. Fix contributed by Quentin Pradet.
  294. .. _version-2.0.1:
  295. 2.0.1
  296. =====
  297. :release-date: 2016-05-31 6:20 P.M PDT
  298. :release-by: Ask Solem
  299. - Adds backward compatibility layer for the 1.4 API.
  300. Using the connection without calling ``.connect()`` first will now work,
  301. but a warning is emitted and the behavior is deprecated and will be
  302. removed in version 2.2.
  303. - Fixes kombu 3.0/celery 3.1 compatibility (Issue #88).
  304. Fix contributed by Bas ten Berge.
  305. - Fixed compatibility with Python 2.7.3 (Issue #85)
  306. Fix contributed by Bas ten Berge.
  307. - Fixed bug where calling drain_events() with a timeout of 0 would actually
  308. block until a frame is received.
  309. - Documentation moved to http://amqp.readthedocs.io (Issue #89).
  310. See https://blog.readthedocs.com/securing-subdomains/ for the reasoning
  311. behind this change.
  312. Fix contributed by Adam Chainz.
  313. .. _version-2.0.0:
  314. 2.0.0
  315. =====
  316. :release-date: 2016-05-26 1:44 P.M PDT
  317. :release-by: Ask Solem
  318. - No longer supports Python 2.6
  319. - You must now call Connection.connect() to establish the connection.
  320. The Connection constructor no longer has side effects, so you have
  321. to explicitly call connect first.
  322. - Library rewritten to anticipate async changes.
  323. - Connection now exposes underlying socket options.
  324. This change allows to set arbitrary TCP socket options during the creation of
  325. the transport.
  326. Those values can be set passing a dictionray where the key is the name of
  327. the parameter we want to set.
  328. The names of the keys are the ones reported above.
  329. Contributed by Andrea Rosa, Dallas Marlow and Rongze Zhu.
  330. - Additional logging for heartbeats.
  331. Contributed by Davanum Srinivas, and Dmitry Mescheryakov.
  332. - SSL: Fixes issue with remote connection hanging
  333. Fix contributed by Adrien Guinet.
  334. - SSL: ``ssl`` dict argument now supports the ``check_hostname`` key
  335. (Issue #63).
  336. Contributed by Vic Kumar.
  337. - Contributions by:
  338. Adrien Guinet
  339. Andrea Rosa
  340. Artyom Koval
  341. Corey Farwell
  342. Craig Jellick
  343. Dallas Marlow
  344. Davanum Srinivas
  345. Federico Ficarelli
  346. Jared Lewis
  347. Rémy Greinhofer
  348. Rongze Zhu
  349. Yury Selivanov
  350. Vic Kumar
  351. Vladimir Bolshakov
  352. :github_user:`lezeroq`
  353. .. _version-1.4.9:
  354. 1.4.9
  355. =====
  356. :release-date: 2016-01-08 5:50 P.M PST
  357. :release-by: Ask Solem
  358. - Fixes compatibility with Linux/macOS instances where the ``ctypes`` module
  359. does not exist.
  360. Fix contributed by Jared Lewis.
  361. .. _version-1.4.8:
  362. 1.4.8
  363. =====
  364. :release-date: 2015-12-07 12:25 A.M
  365. :release-by: Ask Solem
  366. - ``abstract_channel.wait`` now accepts a float `timeout` parameter expressed
  367. in seconds
  368. Contributed by Goir.
  369. .. _version-1.4.7:
  370. 1.4.7
  371. =====
  372. :release-date: 2015-10-02 05:30 P.M PDT
  373. :release-by: Ask Solem
  374. - Fixed libSystem error on macOS 10.11 (El Capitan)
  375. Fix contributed by Eric Wang.
  376. - ``channel.basic_publish`` now raises :exc:`amqp.exceptions.NotConfirmed` on
  377. ``basic.nack``.
  378. - AMQP timestamps received are now converted from GMT instead of local time
  379. (Issue #67).
  380. - Wheel package installation now supported by both Python 2 and Python3.
  381. Fix contributed by Rémy Greinhofer.
  382. .. _version-1.4.6:
  383. 1.4.6
  384. =====
  385. :release-date: 2014-08-11 06:00 P.M UTC
  386. :release-by: Ask Solem
  387. - Now keeps buffer when socket times out.
  388. Fix contributed by Artyom Koval.
  389. - Adds ``Connection.Transport`` attribute that can be used to specify
  390. a different transport implementation.
  391. Contributed by Yury Selivanov.
  392. .. _version-1.4.5:
  393. 1.4.5
  394. =====
  395. :release-date: 2014-04-15 09:00 P.M UTC
  396. :release-by: Ask Solem
  397. - Can now deserialize more AMQP types.
  398. Now handles types ``short string``, ``short short int``,
  399. ``short short unsigned int``, ``short int``, ``short unsigned int``,
  400. ``long unsigned int``, ``long long int``, ``long long unsigned int``
  401. and ``float`` which for some reason was missing, even in the original
  402. amqplib module.
  403. - SSL: Workaround for Python SSL bug.
  404. A bug in the python socket library causes ``ssl.read/write()``
  405. on a closed socket to raise :exc:`AttributeError` instead of
  406. :exc:`IOError`.
  407. Fix contributed by Craig Jellick.
  408. - ``Transport.__del_`` now handles errors occurring at late interpreter
  409. shutdown (Issue #36).
  410. .. _version-1.4.4:
  411. 1.4.4
  412. =====
  413. :release-date: 2014-03-03 04:00 P.M UTC
  414. :release-by: Ask Solem
  415. - SSL transport accidentally disconnected after read timeout.
  416. Fix contributed by Craig Jellick.
  417. .. _version-1.4.3:
  418. 1.4.3
  419. =====
  420. :release-date: 2014-02-09 03:00 P.M UTC
  421. :release-by: Ask Solem
  422. - Fixed bug where more data was requested from the socket
  423. than was actually needed.
  424. Contributed by Ionel Cristian Mărieș.
  425. .. _version-1.4.2:
  426. 1.4.2
  427. =====
  428. :release-date: 2014-01-23 05:00 P.M UTC
  429. - Heartbeat negotiation would use heartbeat value from server even
  430. if heartbeat disabled (Issue #31).
  431. .. _version-1.4.1:
  432. 1.4.1
  433. =====
  434. :release-date: 2014-01-14 09:30 P.M UTC
  435. :release-by: Ask Solem
  436. - Fixed error occurring when heartbeats disabled.
  437. .. _version-1.4.0:
  438. 1.4.0
  439. =====
  440. :release-date: 2014-01-13 03:00 P.M UTC
  441. :release-by: Ask Solem
  442. - Heartbeat implementation improved (Issue #6).
  443. The new heartbeat behavior is the same approach as taken by the
  444. RabbitMQ java library.
  445. This also means that clients should preferably call the ``heartbeat_tick``
  446. method more frequently (like every second) instead of using the old
  447. ``rate`` argument (which is now ignored).
  448. - Heartbeat interval is negotiated with the server.
  449. - Some delay is allowed if the heartbeat is late.
  450. - Monotonic time is used to keep track of the heartbeat
  451. instead of relying on the caller to call the checking function
  452. at the right time.
  453. Contributed by Dustin J. Mitchell.
  454. - NoneType is now supported in tables and arrays.
  455. Contributed by Dominik Fässler.
  456. - SSLTransport: Now handles ``ENOENT``.
  457. Fix contributed by Adrien Guinet.
  458. .. _version-1.3.3:
  459. 1.3.3
  460. =====
  461. :release-date: 2013-11-11 03:30 P.M UTC
  462. :release-by: Ask Solem
  463. - SSLTransport: Now keeps read buffer if an exception is raised
  464. (Issue #26).
  465. Fix contributed by Tommie Gannert.
  466. .. _version-1.3.2:
  467. 1.3.2
  468. =====
  469. :release-date: 2013-10-29 02:00 P.M UTC
  470. :release-by: Ask Solem
  471. - Message.channel is now a channel object (not the channel id).
  472. - Bug in previous version caused the socket to be flagged as disconnected
  473. at EAGAIN/EINTR.
  474. .. _version-1.3.1:
  475. 1.3.1
  476. =====
  477. :release-date: 2013-10-24 04:00 P.M UTC
  478. :release-by: Ask Solem
  479. - Now implements Connection.connected (Issue #22).
  480. - Fixed bug where ``str(AMQPError)`` did not return string.
  481. .. _version-1.3.0:
  482. 1.3.0
  483. =====
  484. :release-date: 2013-09-04 02:39 P.M UTC
  485. :release-by: Ask Solem
  486. - Now sets ``Message.channel`` on delivery (Issue #12)
  487. amqplib used to make the channel object available
  488. as ``Message.delivery_info['channel']``, but this was removed
  489. in py-amqp. librabbitmq sets ``Message.channel``,
  490. which is a more reasonable solution in our opinion as that
  491. keeps the delivery info intact.
  492. - New option to wait for publish confirmations (Issue #3)
  493. There is now a new Connection ``confirm_publish`` that will
  494. force any ``basic_publish`` call to wait for confirmation.
  495. Enabling publisher confirms like this degrades performance
  496. considerably, but can be suitable for some applications
  497. and now it's possible by configuration.
  498. - ``queue_declare`` now returns named tuple of type
  499. :class:`~amqp.protocol.basic_declare_ok_t`.
  500. Supporting fields: ``queue``, ``message_count``, and
  501. ``consumer_count``.
  502. - Contents of ``Channel.returned_messages`` is now named tuples.
  503. Supporting fields: ``reply_code``, ``reply_text``, ``exchange``,
  504. ``routing_key``, and ``message``.
  505. - Sockets now set to close on exec using the ``FD_CLOEXEC`` flag.
  506. Currently only supported on platforms supporting this flag,
  507. which does not include Windows.
  508. Contributed by Tommie Gannert.
  509. .. _version-1.2.1:
  510. 1.2.1
  511. =====
  512. :release-date: 2013-08-16 05:30 P.M UTC
  513. :release-by: Ask Solem
  514. - Adds promise type: :meth:`amqp.utils.promise`
  515. - Merges fixes from 1.0.x
  516. .. _version-1.2.0:
  517. 1.2.0
  518. =====
  519. :release-date: 2012-11-12 04:00 P.M UTC
  520. :release-by: Ask Solem
  521. - New exception hierarchy:
  522. - :class:`~amqp.AMQPError`
  523. - :class:`~amqp.ConnectionError`
  524. - :class:`~amqp.RecoverableConnectionError`
  525. - :class:`~amqp.ConsumerCancelled`
  526. - :class:`~amqp.ConnectionForced`
  527. - :class:`~amqp.ResourceError`
  528. - :class:`~IrrecoverableConnectionError`
  529. - :class:`~amqp.ChannelNotOpen`
  530. - :class:`~amqp.FrameError`
  531. - :class:`~amqp.FrameSyntaxError`
  532. - :class:`~amqp.InvalidCommand`
  533. - :class:`~amqp.InvalidPath`
  534. - :class:`~amqp.NotAllowed`
  535. - :class:`~amqp.UnexpectedFrame`
  536. - :class:`~amqp.AMQPNotImplementedError`
  537. - :class:`~amqp.InternalError`
  538. - :class:`~amqp.ChannelError`
  539. - :class:`~RecoverableChannelError`
  540. - :class:`~amqp.ContentTooLarge`
  541. - :class:`~amqp.NoConsumers`
  542. - :class:`~amqp.ResourceLocked`
  543. - :class:`~IrrecoverableChannelError`
  544. - :class:`~amqp.AccessRefused`
  545. - :class:`~amqp.NotFound`
  546. - :class:`~amqp.PreconditionFailed`
  547. .. _version-1.1.0:
  548. 1.1.0
  549. =====
  550. :release-date: 2013-11-08 10:36 P.M UTC
  551. :release-by: Ask Solem
  552. - No longer supports Python 2.5
  553. - Fixed receiving of float table values.
  554. - Now Supports Python 3 and Python 2.6+ in the same source code.
  555. - Python 3 related fixes.
  556. .. _version-1.0.13:
  557. 1.0.13
  558. ======
  559. :release-date: 2013-07-31 04:00 P.M BST
  560. :release-by: Ask Solem
  561. - Fixed problems with the SSL transport (Issue #15).
  562. Fix contributed by Adrien Guinet.
  563. - Small optimizations
  564. .. _version-1.0.12:
  565. 1.0.12
  566. ======
  567. :release-date: 2013-06-25 02:00 P.M BST
  568. :release-by: Ask Solem
  569. - Fixed another Python 3 compatibility problem.
  570. .. _version-1.0.11:
  571. 1.0.11
  572. ======
  573. :release-date: 2013-04-11 06:00 P.M BST
  574. :release-by: Ask Solem
  575. - Fixed Python 3 incompatibility in ``amqp/transport.py``.
  576. .. _version-1.0.10:
  577. 1.0.10
  578. ======
  579. :release-date: 2013-03-21 03:30 P.M UTC
  580. :release-by: Ask Solem
  581. - Fixed Python 3 incompatibility in ``amqp/serialization.py``.
  582. (Issue #11).
  583. .. _version-1.0.9:
  584. 1.0.9
  585. =====
  586. :release-date: 2013-03-08 10:40 A.M UTC
  587. :release-by: Ask Solem
  588. - Publisher ack callbacks should now work after typo fix (Issue #9).
  589. - ``channel(explicit_id)`` will now claim that id from the array
  590. of unused channel ids.
  591. - Fixes Jython compatibility.
  592. .. _version-1.0.8:
  593. 1.0.8
  594. =====
  595. :release-date: 2013-02-08 01:00 P.M UTC
  596. :release-by: Ask Solem
  597. - Fixed SyntaxError on Python 2.5
  598. .. _version-1.0.7:
  599. 1.0.7
  600. =====
  601. :release-date: 2013-02-08 01:00 P.M UTC
  602. :release-by: Ask Solem
  603. - Workaround for bug on some Python 2.5 installations where (2**32) is 0.
  604. - Can now serialize the ARRAY type.
  605. Contributed by Adam Wentz.
  606. - Fixed tuple format bug in exception (Issue #4).
  607. .. _version-1.0.6:
  608. 1.0.6
  609. =====
  610. :release-date: 2012-11-29 01:14 P.M UTC
  611. :release-by: Ask Solem
  612. - ``Channel.close`` is now ignored if the connection attribute is None.
  613. .. _version-1.0.5:
  614. 1.0.5
  615. =====
  616. :release-date: 2012-11-21 04:00 P.M UTC
  617. :release-by: Ask Solem
  618. - ``Channel.basic_cancel`` is now ignored if the channel was already closed.
  619. - ``Channel.events`` is now a dict of sets::
  620. >>> channel.events['basic_return'].add(on_basic_return)
  621. >>> channel.events['basic_return'].discard(on_basic_return)
  622. .. _version-1.0.4:
  623. 1.0.4
  624. =====
  625. :release-date: 2012-11-13 04:00 P.M UTC
  626. :release-by: Ask Solem
  627. - Fixes Python 2.5 support
  628. .. _version-1.0.3:
  629. 1.0.3
  630. =====
  631. :release-date: 2012-11-12 04:00 P.M UTC
  632. :release-by: Ask Solem
  633. - Now can also handle float in headers/tables when receiving messages.
  634. - Now uses :class:`array.array` to keep track of unused channel ids.
  635. - The :data:`~amqp.exceptions.METHOD_NAME_MAP` has been updated for
  636. amqp/0.9.1 and Rabbit extensions.
  637. - Removed a bunch of accidentally included images.
  638. .. _version-1.0.2:
  639. 1.0.2
  640. =====
  641. :release-date: 2012-11-06 05:00 P.M UTC
  642. :release-by: Ask Solem
  643. - Now supports float values in headers/tables.
  644. .. _version-1.0.1:
  645. 1.0.1
  646. =====
  647. :release-date: 2012-11-05 01:00 P.M UTC
  648. :release-by: Ask Solem
  649. - Connection errors no longer includes :exc:`AttributeError`.
  650. - Fixed problem with using the SSL transport in a non-blocking context.
  651. Fix contributed by Mher Movsisyan.
  652. .. _version-1.0.0:
  653. 1.0.0
  654. =====
  655. :release-date: 2012-11-05 01:00 P.M UTC
  656. :release-by: Ask Solem
  657. - Channels are now restored on channel error, so that the connection does not
  658. have to closed.
  659. .. _version-0.9.4:
  660. Version 0.9.4
  661. =============
  662. - Adds support for ``exchange_bind`` and ``exchange_unbind``.
  663. Contributed by Rumyana Neykova
  664. - Fixed bugs in funtests and demo scripts.
  665. Contributed by Rumyana Neykova
  666. .. _version-0.9.3:
  667. Version 0.9.3
  668. =============
  669. - Fixed bug that could cause the consumer to crash when reading
  670. large message payloads asynchronously.
  671. - Serialization error messages now include the invalid value.
  672. .. _version-0.9.2:
  673. Version 0.9.2
  674. =============
  675. - Consumer cancel notification support was broken (Issue #1)
  676. Fix contributed by Andrew Grangaard
  677. .. _version-0.9.1:
  678. Version 0.9.1
  679. =============
  680. - Supports draining events from multiple channels (``Connection.drain_events``)
  681. - Support for timeouts
  682. - Support for heartbeats
  683. - ``Connection.heartbeat_tick(rate=2)`` must called at regular intervals
  684. (half of the heartbeat value if rate is 2).
  685. - Or some other scheme by using ``Connection.send_heartbeat``.
  686. - Supports RabbitMQ extensions:
  687. - Consumer Cancel Notifications
  688. - by default a cancel results in ``ChannelError`` being raised
  689. - but not if a ``on_cancel`` callback is passed to ``basic_consume``.
  690. - Publisher confirms
  691. - ``Channel.confirm_select()`` enables publisher confirms.
  692. - ``Channel.events['basic_ack'].append(my_callback)`` adds a callback
  693. to be called when a message is confirmed. This callback is then
  694. called with the signature ``(delivery_tag, multiple)``.
  695. - Support for ``basic_return``
  696. - Uses AMQP 0-9-1 instead of 0-8.
  697. - ``Channel.access_request`` and ``ticket`` arguments to methods
  698. **removed**.
  699. - Supports the ``arguments`` argument to ``basic_consume``.
  700. - ``internal`` argument to ``exchange_declare`` removed.
  701. - ``auto_delete`` argument to ``exchange_declare`` deprecated
  702. - ``insist`` argument to ``Connection`` removed.
  703. - ``Channel.alerts`` has been removed.
  704. - Support for ``Channel.basic_recover_async``.
  705. - ``Channel.basic_recover`` deprecated.
  706. - Exceptions renamed to have idiomatic names:
  707. - ``AMQPException`` -> ``AMQPError``
  708. - ``AMQPConnectionException`` -> ConnectionError``
  709. - ``AMQPChannelException`` -> ChannelError``
  710. - ``Connection.known_hosts`` removed.
  711. - ``Connection`` no longer supports redirects.
  712. - ``exchange`` argument to ``queue_bind`` can now be empty
  713. to use the "default exchange".
  714. - Adds ``Connection.is_alive`` that tries to detect
  715. whether the connection can still be used.
  716. - Adds ``Connection.connection_errors`` and ``.channel_errors``,
  717. a list of recoverable errors.
  718. - Exposes the underlying socket as ``Connection.sock``.
  719. - Adds ``Channel.no_ack_consumers`` to keep track of consumer tags
  720. that set the no_ack flag.
  721. - Slightly better at error recovery