Wykres commitów

994 Commity (2acca01df5ee063d36739dec7b047c75ad32964c)

Autor SHA1 Wiadomość Data
lrasku 8e8aafd33e Make WebSockets work with IPv6 addresses
WebSocketsWriter.get_peer_info() naively returns just
self._protocol.remote_address, but this is a 4-tuple in IPv6,
which will raise ValueErrors when client code tries to unpack
it into two elements. Fortunately the first two elements of the
tuple are the same as in IPv4 and should be all that we need
(get_peer_info() is currently only used for logging), so just
return a 2-prefix of the value instead.
2021-03-15 10:16:50 +01:00
Marius Kriegerowski db3dffa857 use black linter with 96 char line length 2021-03-14 21:44:41 +01:00
lrasku 295418a11f Permit connect() and reconnect() coroutines to be cancelled
The plain `except BaseException` statement used in the two coroutines
also matches asyncio.CancelledError and thus prevents them from
being cancelled. Prepend a simple re-raising except block for
asyncio.CancelledError to get them to work with task cancellation.
2021-03-14 16:55:29 +01:00
Florian Ludwig 87d19c5342 prepare second alpha release: 0.10.0-alpha.1 2021-03-13 18:28:01 +01:00
Florian Ludwig 112fc959f4 don't keep changelog per pre-release 2021-03-13 18:28:01 +01:00
Florian Ludwig b16450cf71 more consistent release naming 2021-03-13 18:28:01 +01:00
Florian Ludwig 009986efbc automaticlally set version in Sphinx from release 2021-03-13 18:28:01 +01:00
Florian Ludwig df1696d8f9 update author and url 2021-03-13 18:28:01 +01:00
Florian Ludwig 0868d06fd3 remove setup.cfg 2021-03-13 18:28:01 +01:00
Florian Ludwig 0bebf6a675 migrate to aMQTT name 2021-03-13 18:28:01 +01:00
Florian Ludwig a290080417 update python version requirements 2021-03-13 18:28:01 +01:00
Florian Ludwig 3c5256e50f remove tracking from docs 2021-03-13 18:28:01 +01:00
Florian Ludwig e829bfd353 update changelog 2021-03-13 18:28:01 +01:00
Florian Ludwig 97a9d4715a update gitignore 2021-03-13 18:28:01 +01:00
Florian Ludwig a4655ddf25 tox and travis are not used anymore 2021-03-13 18:28:01 +01:00
Florian Ludwig 6f47441fdd cleanup versioning system 2021-03-13 17:02:50 +01:00
Florian Ludwig 836fa0e049 prepare 0.10.0 release 2021-03-13 17:02:50 +01:00
Stein Magnus Jodal b85774439e Move scripts module into hbmqtt module
Fixes #166
2021-03-13 15:58:25 +01:00
Florian Ludwig a19f37dac7 setup coveralls 2021-03-13 15:57:39 +01:00
Florian Ludwig 71a2713ef2 update copyright 2021-03-13 15:57:29 +01:00
Florian Ludwig 2c5404c521 fixup 2021-03-13 15:57:29 +01:00
Florian Ludwig ddd413687e README update 2021-03-13 15:57:29 +01:00
Florian Ludwig 4a9594e6f3 fix TopicTabooPlugin for anonymous users
Thanks to https://github.com/JNevrly
See also https://github.com/beerfactory/hbmqtt/pull/151
2021-03-10 10:20:22 +01:00
Girts Folkmanis 7cd230e6b2 Pass in loop to PluginManager
If `loop` is passed to `MQTTClient`, previously it was not passed down
to `PluginManager`, which could potentially grab a different loop from
`asyncio.get_event_loop()`, resulting in a separate event loop being
created or wrong one being used. Now the `loop` argument is passed down
as expected.
2021-03-10 10:09:10 +01:00
Florian Ludwig ab2084190e install pytest-asyncio in CI 2021-03-09 19:13:32 +01:00
Florian Ludwig f439ccd1b1 reaplce some more assertEqual 2021-03-09 19:13:32 +01:00
Florian Ludwig 7c56c9caba migrate test_client to pytest 2021-03-09 19:13:32 +01:00
Florian Ludwig 7276075ed8 move broker into pytest fixture 2021-03-09 19:13:32 +01:00
Florian Ludwig b430cc8487 replace assertTrue 2021-03-09 19:13:32 +01:00
Florian Ludwig 5c58fcd59c rework broker tests to use pytest-asyncio 2021-03-09 19:13:32 +01:00
Florian Ludwig c631cc7895 run tests for python 3.8 and 3.9 2021-03-09 19:13:32 +01:00
Marius Kriegerowski 1e11e30457 add python3.9 to supported version 2021-03-09 19:13:32 +01:00
Marius Kriegerowski 0e594582d1 add python3.8 to environment 2021-03-09 19:13:32 +01:00
Marius Kriegerowski 30582f4cac Revert "Fixed critical bugs e.g., incorrectly retained messages on qos0, race conditions on detached sessions, eliminated set_exception on client disconnect tasks, a few debug log message isEnabledFor wrappers."
This reverts commit 1f5efd383f.
2021-03-09 19:13:32 +01:00
Marius Kriegerowski 7b7d17b789 fix async lock call 2021-03-09 19:13:32 +01:00
Marius Kriegerowski 6f586c253c Fix missing plugin property 2021-03-09 19:13:32 +01:00
Marius Kriegerowski 080a358dd7 Patch MagicMock to asyncronize 2021-03-09 19:13:32 +01:00
Marius Kriegerowski e0fabc0bc3 Refactor to comply python3.8 2021-03-09 19:13:32 +01:00
Florian Ludwig bd58685028 mark failing tasts as allowed to fail 2021-03-08 21:08:35 +01:00
Marius Kriegerowski aeee26f34b Download mosquitto certificate on the fly 2021-03-01 17:40:57 +01:00
Florian Ludwig fba07fcc35 drop support for 3.4 and 3.5 2021-03-01 17:29:24 +01:00
Marius Kriegerowski 54c0eb8ec7 Create python-package.yml 2021-02-27 22:29:19 +01:00
Nicolas 07c4c70f06
Merge pull request #213 from shipmints/misc-fixes
Misc fixes
2020-04-10 20:47:06 +04:00
shipmints 304c731831 Another asyncio fix to properly handle CancelledError as normal (and reraise) vs. exception 2020-04-02 11:34:46 -04:00
shipmints 1f5efd383f Fixed critical bugs e.g., incorrectly retained messages on qos0, race conditions on detached sessions, eliminated set_exception on client disconnect tasks, a few debug log message isEnabledFor wrappers. 2020-04-01 15:09:09 -04:00
shipmints 31165fb0e8 asyncio correctness and race-condition tweaks 2020-02-22 07:30:34 -05:00
shipmints 6d6dd997f1 Asyncio fixes 2020-02-20 10:46:29 -05:00
shipmints 69e3e0bc5b Slight enhancement to client_tasks.pop() in cancel tasks and disconnect logic. 2020-02-17 14:56:59 -05:00
Nicolas 4f5f19aac3
Merge pull request #204 from shipmints/fix-mem-leaks
Corrected memory leak of task refs in client deliver_message on timeo…
2020-02-17 20:43:00 +04:00
shipmints 138313a3eb Corrected memory leak of task refs in client deliver_message on timeout causing client_tasks to grow forever, in plugin/manager causing _fired_events to grow forever 2020-02-14 20:36:17 -05:00