Wykres commitów

535 Commity (fba07fcc351ae106d60d794061dd7c92e7299ca2)

Autor SHA1 Wiadomość Data
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
Anton Lindroth b0505ff093 Getting peer address with self._protocol.remote_address in WebSocketsWriter.get_peer_info 2019-11-28 07:30:27 +01: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
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
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
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
Bharath Yadavally e140ec045a Added missing ack_timeout param expected in mqtt_publish method of handler.py 2019-01-08 15:28:03 +11:00
Román Cárdenas 9d81b1f4a9 ACL plugin and documentation 2019-01-04 18:29:48 +01:00
Schneider 0ceadbff86 replaced tabs with spaces 2018-12-05 15:55:30 +01:00
Schneider 7cc5e17988 improved documentation and script integration of extra_headers 2018-12-05 15:39:31 +01:00
erics465 ced07f90dd
added passthrough of websocket extra headers 2018-11-20 12:42:49 +01:00
Yves Delley bffed55a17 do actually wait for the connection in the mqtt_connection decorator 2018-11-13 17:56:59 +01:00
Nicolas 7704170d1d
Bump to next version 2018-11-11 12:09:50 +01:00
Nicolas 3c2c5d6338
Release version 2018-11-09 18:18:45 +01:00
Nicolas 89dc31ce36
Merge pull request #150 from luchermans/patch-1
Update topic_checking.py
2018-11-07 13:34:53 +01:00
Thinh Nguyen 5a241d7739 Only setting session username/password if it is not already set. This is to prevent failures when the broker is reconnecting without username/password 2018-10-29 13:55:09 +11:00
luchermans 577ec3cf0e
Update topic_checking.py
remove if session.username when using anonymous client
2018-10-03 15:42:49 +02:00
Richard Kojedzinszky deeae6a230 MQTTClient: init should not overwrite global defaults 2018-09-22 14:28:31 +02:00
Nicolas 776c2992b6
Bump version 2018-07-21 21:57:51 +02:00
Nicolas bc837c80bc
Release v0.9.4 2018-07-21 21:50:28 +02:00
Nicolas 8a0a1ad18e
bump version 2018-07-16 21:15:58 +02:00
Nicolas ccfa6b7319
Version 0.9.3 2018-07-16 21:09:44 +02:00
Nicolas 1af9e7f99c
Merge pull request #139 from gdraynz/py37
python3.7 support
2018-07-16 21:06:44 +02:00
Aleksandr Mironov 0f17486e13 Pass CA params to broker's SSL context 2018-07-12 11:16:51 +03:00
Richard Kojedzinszky 44479b73b9 Handle no more reconnect case in mqtt_connected decorator
Fixes #140
2018-07-05 21:29:07 +02:00
Guillaume Desvé 31888f8e69 python3.7 support 2018-06-29 15:56:27 +02:00
krh 75a85d1ea4 Import InvalidHandshake from 'websockets.exceptions' not 'websockets.handshake', since websockets 5.0 no longer provides that alias. 2018-05-22 11:28:43 -07:00
Nicolas 7c8e393166
Merge pull request #114 from phooky/master
Correctly handle CONNECT with zero-length client_id
2018-04-29 17:30:02 +02:00
Román Cárdenas 59f9d28029 Added topic filtering Plugin 2018-03-19 10:58:56 +01:00
Román Cárdenas 42143a196c Client authentication error fixed 2018-03-16 15:27:31 +01:00
Adam Mayer bbcf7b3849
correctly handle CONNECT with zero-length client_id
Zero-length client_ids in CONNECT packets show up in the payload as empty strings, not None; the broker should generate a new id for these connections.
2018-03-14 13:21:17 -04:00
Nicolas 031580a3fc
Bump version 2018-03-07 12:09:51 +01:00
Nicolas 39cc93cfee
0.9.2 release 2018-03-07 09:52:18 +01:00
Vegard Storheil Eriksen 7df731790a Re-raise exception from deliver_task in MQTTClient.deliver_message().
deliver_task will raise a ClientException to signal a connection loss.
Passing it on to the caller instead of silently ignoring it lets the
caller handle the connection loss. Exiting the function early also
avoids an IndexError when trying to pop from client_tasks.

Fixes #106
2018-02-13 23:58:48 +01:00
mi3z 47e37404fd TLS connections can be established by default with system certificates to publish domains (for example to 'mqtts://iot.eclipse.org') - the client only requires cafiles if the broker provides self signed certificates 2017-11-22 10:40:20 +01:00