Commit graph libervia-backend/sat/plugins/plugin_xep_0198.py
Author SHA1 Message Date
Goffi
430649f58f plugin XEP-0198: reset req_timer on session.reset():
req_timer may not have been called when session.reset() is called (e.g. on resuming failed after computer has been suspended), so reset() must cancel it and set its value to None.
2019-03-21 08:54:59 +01:00
Goffi
f537241232 plugin XEP-0198: don't use hooks on components 2019-02-02 01:05:25 +01:00
Goffi
2a5ea36101 plugin XEP-0198: fixed typo resulting in a crash on resume 2019-01-26 20:08:33 +01:00
Goffi
b906423cfb plugin XEP-0198: rised ACK_TIMEOUT + set req_time to None when timing out to be ready after resuming 2018-12-27 09:21:10 +01:00
Goffi
6852b6b677 plugin XEP-0198: allow to customise/disable ack_timeout:
"ack_timeout" setting can be set in [DEFAULT] section to the number of seconds before timing out, or to 0 to disable the timeout.
2018-12-26 17:21:38 +01:00
Goffi
3515defd64 plugin XEP-0198: abort connection if ack is not received after a timeout:
If ack is not received after a given time (currently 25s), connection is aborted.
This avoid waiting forever when TCP link is lost (i.e. switching from cable to wifi), and allows to use resuming mechanism.
2018-12-26 14:37:13 +01:00
Goffi
05b59775d0 plugin XEP-0198: Stream Management implementation:
- hooks can now be set in stream onElement and send methods
- xmllog refactored to use new hooks
- client.isConnected now uses transport.connected method
- fixed reconnection, SàT will now try to reconnect indefinitely until it success, unresolvable failure happen (e.g. invalid certificate), or explicit disconnection is requested (or a plugin change this behaviour)
- new triggers: "stream_hooks", "disconnecting", "disconnected", and "xml_init" (replace "XML Initialized")
2018-11-18 15:49:46 +01:00