conn: clear system handlers on reconnect

xmpp_conn_t object can be reused with saving user's handlers.
However, saving system handlers can lead to a fail during connection
process. This is because old object may contain timed handlers for
missed features or other handlers that would handle incoming stanzas
incorrectly.
This commit is contained in:
Dmitry Podgorny
2017-06-24 02:10:03 +03:00
parent da8dc2d3cb
commit 5ecb0c5d0c
4 changed files with 76 additions and 0 deletions

View File

@@ -4,6 +4,8 @@
- OpenSSL tls module disables insecure SSLv2 SSLv3 and TLSv1
- Support of handlers with the same callback function, but different
userdata
- System handlers are deleted on xmpp_conn_t reconnection. Old system
handlers could cause problems
- New public function xmpp_sha1_digest()
0.9.1