Wykres commitów

826 Commity (a19f37dac7bdf482cd49a8cd18685a8401c1a2d5)

Autor SHA1 Wiadomość Data
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
Nicolas f76be85a0a
prepare next version 2020-01-25 18:14:20 +04:00
Nicolas f81de68aed
release 2020-01-25 18:08:07 +04:00
Nicolas 87ac03be92
Merge pull request #194 from ntoonio/master
Getting peer address with self._protocol.remote_address in WebSocketsWriter
2020-01-25 17:59:00 +04:00
Anton Lindroth b0505ff093 Getting peer address with self._protocol.remote_address in WebSocketsWriter.get_peer_info 2019-11-28 07:30:27 +01:00
Nicolas fc462d12bb
Merge pull request #189 from jeeger/reuseaddr
Enable reuse_address by default.
2019-09-18 18:13:07 +04:00
Jan Seeger d8450e9922 Enable reuse_address by default. 2019-08-06 17:06:22 +02:00
Nicolas 4d44a056fa
Merge pull request #186 from agebhar1/feature/PyYAML5
fix PyYAML warning on call of `yaml.load(…)`
2019-07-28 12:29:12 +02:00
Nicolas 3f8c994f58
Merge pull request #183 from andvikt/master
Added cancel pending tasks coro
2019-07-28 12:28:26 +02:00
Andreas Gebhardt f8751ca94b fix PyYAML warning on call of `yaml.load(…)`
Since PyYAML v5.1 a warning on deprecation is printed:

> YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated,
> as the default Loader is unsafe. Please read https://msg.pyyaml.org/load
> for full details.

Use the `FullLoader`s suggared variant `yaml.full_load` according to the
documentation [1] if it's present. Then it's assumed that PyYAML >= v5.1 is
used.

[1] https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation#how-to-disable-the-warning
2019-06-30 20:03:49 +02:00
andvikt 8a20cbe0c7
Update client.py
python 34 support
2019-06-04 10:17:17 +03:00
Andrey Viktorov 99d76012ea Added cancel pending tasks coro 2019-06-03 22:42:19 +03:00
Nicolas 4aa6fe9821
Merge pull request #177 from rkojedzinszky/task_leak_fix
hbmqtt.client: fix a Task leak
2019-03-19 22:18:39 +01:00
Richard Kojedzinszky a6c8810d5b hbmqtt.client: fix a Task leak
We should cleanup all pending events.
2019-03-18 19:19:05 +01:00
Nicolas 1608573af6
Merge pull request #154 from burnpanck/bugfix/await-asyncio.wait-in-mqtt-connected
do actually wait for the connection in the mqtt_connection decorator
2019-03-11 12:10:17 +01:00
Nicolas 4ddfd466ba
Merge pull request #169 from d21d3q/feature/infinite_reconnect
Add option for infitie reconnecting.
2019-03-07 16:13:05 +01:00
Nicolas b6973e06cf
Merge pull request #173 from d21d3q/bugfix/synchronize-write
Add protocol write synchronization.
2019-03-07 16:11:34 +01:00
Zdzislaw Krajewski 6f282187d8 Add protocol write synchronization.
Concurrent write to protocol was causing library to crash when
drain() function was called simltaneously.
2019-03-05 10:07:05 +01:00
Zdzislaw Krajewski e9db78a3b0 Add option for infitie reconnecting.
It simplifies reconnection logic. In case of long running services which publish data to server,
there is need to reconnect anyway. When reconnect_retries elapses, then reconnection have to be
done manually. Carrying about it inside coroutine which publishing data introduces complexity.
2019-02-25 14:55:51 +01:00