summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* start removing codecov pypi (#411)HEADmainAsif Saif Uddin2023-04-171-1/+0
|
* update versions (#407)Asif Saif Uddin2023-03-131-6/+4
|
* update pypy on tox (#402)Asif Saif Uddin2022-12-291-1/+1
| | | | | * update pypy on tox * update
* try explicit pypy versionAsif Saif Uddin2022-12-291-4/+4
|
* This PR changes the remains of the references to master that we didn't ↵Omer Katz2022-12-293-11/+11
| | | | | | change yet to main. I also noticed our build status still refers to Travis which is now not in use anymore so we now use the correct badge from Github Actions.
* update actions versionsAsif Saif Uddin2022-12-291-6/+6
|
* Set an explicit timeout on SSL handshake to prevent hangsCarlos Corbacho2022-11-122-0/+10
| | | | | | | | If we do not set a timeout on the SSL handshake, this can cause an infinite hang if something happens during this point to the remote end - this has been seen with AWS MQ RabbitMQ during cluster maintenance triggering a reboot, and causing hangs of any connection that is in the handshake phase.
* remove cron & use v3 checkout (#397)Asif Saif Uddin2022-07-121-3/+1
|
* fix release date of v5.1.1Asif Saif Uddin2022-04-211-1/+1
|
* Bump version: 5.1.0 → 5.1.1v5.1.1Asif Saif Uddin2022-04-174-4/+4
|
* changelog entry for v5.1.1 releaseAsif Saif Uddin2022-04-171-0/+9
|
* merge conflict deleteAsif Saif Uddin2022-04-171-30/+0
|\
| * not needed anymoreAsif Saif Uddin2022-04-171-30/+0
| |
* | merge conflictAsif Saif Uddin2022-04-171-4/+4
|/
* Use AF_UNSPEC for name resolution (#389)John Eckersberg2022-04-082-88/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use AF_UNSPEC for name resolution This reverts most of 1ad97fb14c0c3c57395ca525932f95a830e51a88, but keeps tests which still have general applicability. The reason the original change was made was to try and work around a bug[1] in the eventlet library. Eventlet monkey-patches the socket.getaddrinfo function and replaces it with its own async, eventlet-aware implementation. The reason name resolution was broken in the first place is because eventlet was consulting DNS first, and then if that failed, falling back to /etc/hosts, which is just flat out incorrect behavior. It's important to note that this was *only* when running py-amqp under eventlet, and *only* for specific versions of eventlet that have long been fixed. So this workaround is not even needed anymore. With "normal" (non-eventlet) use, socket.getaddrinfo instead calls into the glibc getaddrinfo implementation, which ultimately uses libnss to resolve hostnames. However, there is an issue with the original workaround when using the default (glibc) getaddrinfo. The workaround (current) implementation explicitly forces resolution to use AF_INET (IPv4) and then only if that does not succeed, it in turn will try with AF_INET6 (IPv6). This generally works well for IPv4-only hosts, but can be unnecessarily slow for dual-stack IPv4/IPv6 hosts. Consider the following: - We want to connect to example.org - The /etc/hosts file contains an IPv6 entry: example.org f00d::1 - The /etc/nsswitch.conf file contains typical (simplified) hosts config: hosts: files dns In this case, the current code will involve nss iterating through the modules: - files (with AF_INET): fails, because there is no IPv4 address in /etc/hosts - dns (with AF_INET): may or may not succeed per-site, depending on how DNS is configured. If DNS is slow/misconfigured, this may incur a delay and block for a significant amount of time. - files (with AF_INET6): succeeds, and getaddrinfo returns f00d::1. Now in the same scenario as before, with this fix which reverts back to using AF_UNSPEC instead: - files (with AF_UNSPEC) succeeds, and getaddrinfo returns f00d::1. There is no need to involve DNS at all. Even a well-configured, quick-to-respond DNS server is going to be many orders of magnitude slower than consulting with /etc/hosts which libnss keeps cached in memory. [1] https://bugs.launchpad.net/neutron/+bug/1696094/comments/22 * tests: ensure getaddrinfo is called with AF_UNSPEC
* Bump version: 5.0.9 → 5.1.0v5.1.0Asif Saif Uddin2022-03-064-4/+4
|
* changelog entry for v5.1.0 releaseAsif Saif Uddin2022-03-061-0/+15
|
* try pytest 7 (#388)Asif Saif Uddin2022-03-011-1/+1
|
* relaxed vine version for upcoming releaseAsif Saif Uddin2022-03-011-1/+1
|
* adding experimental __slots__ to some classes (#368)Asif Saif Uddin2022-02-086-0/+81
| | | | | | | | | | | * adding experimental __slots__ to some classes * adding more experimental __slots__ to some classes * remove redundant slots * added more experimental slots to classes * remove slots from buffer class
* start dropping python 3.6 (#387)masterAsif Saif Uddin2022-01-104-18/+7
| | | | | | | | | | | | | | | * start dropping python 3.6 mainly for 5.1.0 release * update tidelift alignment config CI (#375) * update tidelift alignment config CI * update tidelift CLI properly * not needed on PR * drop python from all matrix
* update tidelift alignment config CI (#375)Asif Saif Uddin2022-01-011-6/+11
| | | | | | | * update tidelift alignment config CI * update tidelift CLI properly * not needed on PR
* document memoryview usage, minor frame_writer.write_frame refactor (#384)Paul Brown2021-12-243-15/+42
| | | | | | | * document memory_view usage, refactor frame_writer.write_frame * improve test for changing frame_max in write_frame * add integration test for write_frame/send_heartbeat
* improve performance of _get_free_channel_id, fix channel max bug (#385)Paul Brown2021-12-223-4/+13
| | | | | * improve performance of _get_free_channel_id, fix channel max bug * add integration tests for _get_free_channel_id performance improvement
* Bump version: 5.0.8 → 5.0.9v5.0.9Asif Saif Uddin2021-12-204-4/+4
|
* changelog for v5.0.9Asif Saif Uddin2021-12-201-0/+10
|
* append to _used_channel_ids in _used_channel_idsPaul Brown2021-12-202-0/+2
|
* Bump version: 5.0.7 → 5.0.8v5.0.8Asif Saif Uddin2021-12-194-4/+4
|
* changelog entry for v5.0.8Asif Saif Uddin2021-12-191-0/+12
|
* python3 in shebangAsif Saif Uddin2021-12-191-1/+1
|
* unpin flake8Asif Saif Uddin2021-12-191-1/+1
|
* try pytest 6.xAsif Saif Uddin2021-12-191-1/+1
|
* Unit test should run against all transport classesMichael Lazar2021-12-161-9/+10
|
* Add additional error handling around code where an OSError may be raised on ↵Michael Lazar2021-12-162-2/+27
| | | | failed connections. Fixes #378
* reduce memory usage of Connection (#377)Paul Brown2021-12-143-12/+22
| | | | | * reduce memory usage of Connection * allow ValueError on _used_channel_ids.remove
* Bump version: 5.0.6 → 5.0.7v5.0.7Asif Saif Uddin2021-12-134-4/+4
|
* changelog entry for v5.0.7 releaseAsif Saif Uddin2021-12-131-0/+12
|
* add new python versions to tox (#366)Asif Saif Uddin2021-12-133-28/+34
| | | | | | | | | | | | | | | | | | | | | * add new python versions to tox * added codeql actions * drop as we dont use travis * added tidelift alignment action * Adding two tests, for Connection.collect and Transport.close. * revert 3.6 removal * update classifier * reorganize CI process and aded new python versions * remove python 3.10 from CI actions for now Co-authored-by: VinayGValsaraj <vinaygvalsaraj@gmail.com>
* Adding two tests, for Connection.collect and Transport.close.VinayGValsaraj2021-12-124-27/+40
|
* added tidelift alignment actionAsif Saif Uddin2021-11-271-0/+20
|
* drop as we dont use travisAsif Saif Uddin2021-11-211-1/+0
|
* added codeql actionsAsif Saif Uddin2021-11-191-0/+70
|
* Fix typosKian-Meng, Ang2021-11-067-14/+14
|
* Remove dependency to caseMatus Valo2021-09-155-3/+81
|
* fix errorsAsif Saif Uddin (Auvi)2021-04-012-5/+8
|
* Bump version: 5.0.5 → 5.0.6v5.0.6Asif Saif Uddin (Auvi)2021-04-014-4/+4
|
* changelog for py-amqp v5.0.6Asif Saif Uddin (Auvi)2021-04-011-0/+7
|
* Added GitHub actions CI (#359)Matus Valo2021-03-073-87/+74
| | | | | | | * Added github actions lint CI. * Remove .travis.yml * Fix testing speedups in gh actions
* Fix typos.Omer Katz2021-02-281-5/+5
|
* Fix ordering of context.check_hostname and context.verify_mode so as to not ↵Colton Hicks2021-02-224-4/+66
| | | | raise ValueError if cert_reqs=ssl.CERT_NONE.