Haigha

Latest version: v0.9.0

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

Scan your dependencies

Page 2 of 6

0.7.0

=====

Adds `synchronous` keyword argument to `Connection` constructor, which makes
the connection behave as if it were synchronous, no matter the underlying
transport type. Useful for gevent where one does not want to use callbacks.
Applies to all channels, enforces `nowait=False` where applicable.

Adds `synchronous` keyword argument to `Connection.channel`, which makes the
`Channel` object synchronous independent of the underlying transport type.
For example, if a synchronous channel on an asynchronous transport has a
protocol method called with `nowait=False` (where applicable), then the method
will not return until the response frame has been read. Does not enforce
`nowait=False` where applicable.

Adds `synchronous_connect` option to Connection constructor which will enforce
synchronous behavior in `Connection.connect` regardless of the underlying
transport type. Improves features to handle issue 7. Also makes
`Connection.close` synchronous. Defaults to True if transport is synchronous
or `synchronous=True` passed in constructor.
https://github.com/agoragames/haigha/issues/7

Standard and gevent socket transport will raise EnvironmentErrors that aren't
in `(errno.EAGAIN,errno.EWOULDBLOCK,errno.EINTR)`. Fixes notifying read loops
of potential problems and fixes 44
https://github.com/agoragames/haigha/issues/44

Immediately close connection and raise ConnectionClosed if there is a
FrameError in reading frames from the broker in `Connection.read_frames`.

Detect frames that are larger than negotiated frame max in
`Connection.send_frame`, immediately close connection and raise
ConnectionClosed.

Add property `Connection.closed`

0.6.2

=====

Raise ConnectionClosed in Connection.synchronous if the transport has
been cleared

0.6.1

=====

Merge https://github.com/agoragames/haigha/pull/35 from xjdrew
Fix exception raising when there's an application error on a synchronous transport
Fixes synchronous return values from queue.declare
Adds an example synchronous RPC client and server

0.6.0

=====

Fixes 33, only accept (str,unicode,bytearray) as Message body types. Default
to empty string.

0.5.12

======

Fixes 31 wherein a channel is closed on a synchronous transport while reading
frames and waiting for the synchronous callback to be executed.

0.5.11

======

Fixed writing headers if the type of a field is a subclass of the supported
native types

Page 2 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.