Dugong

Latest version: v3.8.2

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

Scan your dependencies

Page 3 of 4

3.3

========================

* It was possible for some methods to raise `BrokenPipeError`, or
`ConnectionResetError` instead of `ConnectionClosed` (especially
under FreeBSD). This has now been fixed.

* It was possible for methods that need to read data from the server
to raise `AssertionError` in some circumstances. This has been
fixed.

3.2

========================

* A `HTTPConnection` instance can now be used as a context manager.

* If a connection is closed unexpectedly while request body data is
being written to the server (i.e., during a call to
`HTTPConnection.write` or `HTTPConnection.co_write`), dugong now
pretends that the body has been sent to the server completely (while
still raising `ConnectionClosed`).

This makes it possible to catch the exception and nevertheless call
`~HTTPConnection.read_response` (or
`~HTTPConnection.co_read_response`) to try to read an error response
that the server may have sent during the upload (if no response has
been received, `ConnectionClosed` will be raised again).

* `is_temp_network_error` now actively tries to distinguish between
permanent and temporary name resolution problems by attempting to
resolve a number of test hostnames.

* `HTTPConnection` has a new `~HTTPConnection.timeout`
attribute. Regular `HTTPConnection` methods (i.e., no coroutines)
will now raise `ConnectionTimedOut` if no data could be send or
received for *timeout* seconds.

3.1

========================

* Fixed a problem with some testcases failing with a BrokenPipeError.

* Fixed a bug that, in some cases, resulted in additional ``\0`` bytes
being appended at the end of the response body, or in an incorrect
`InvalidResponse` exception being raised.

* When trying to continue reading or writing body data after calling
`HTTPConnection.disconnect`, dugong now raises `ConnectionClosed`
instead of `AttributeError`.

3.0

=========================

* Major version bump because of backwards incompatible changes.

* Added `HTTPConnection.read_raw` method.

* The `PollNeeded` class now uses the `!select.POLLIN` and
`!select.POLLOUT` constants instead of `!select.EPOLLIN` and
`!select.EPOLLOUT` to signal what kind of I/O needs to be
performed. This makes dugong compatible with systems lacking epoll
(e.g. FreeBSD).

* The unit tests now check if the host is reachable before trying to
run the example scripts. This avoids bogus test errors if
there is no internet connection or if the remote host is down.
(issue 7).

2.2

========================

* Unittests requiring the `asyncio` module are now skipped if this
module is not available.

2.1

========================

* Fixed a problem where data was not sent to the server if the syscall
was interrupted by a signal.

* It is no longer necessary to read from response body at least once
even if has zero length.

* `PollNeeded.poll` now uses `select.poll` instead of
`select.select`. This avoids a "filedescriptor out of range"
exception that may be raised by `select.select` when the
filedescriptor exceeds some system-specific value.

Page 3 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.