diff options
author | defanor <defanor@uberspace.net> | 2020-11-30 17:56:44 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2020-11-30 17:56:44 +0300 |
commit | 5b5f109824b08619b9167cc82a8b56072a1ed477 (patch) | |
tree | 5c1b3a91cc6bf95b43072383b3ed4f1c72320674 /src/rexmpp.h | |
parent | 3bcb471cf3fbe628e33ca4c2ab1419f8790499bb (diff) |
Reconnect on "reset" and "system-shutdown" stream errors
Diffstat (limited to 'src/rexmpp.h')
-rw-r--r-- | src/rexmpp.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rexmpp.h b/src/rexmpp.h index bd6f8cb..2f21fce 100644 --- a/src/rexmpp.h +++ b/src/rexmpp.h @@ -112,7 +112,9 @@ enum stream_st { /** The server-to-client stream is closed. */ REXMPP_STREAM_CLOSED, /** A stream error was detected in the server-to-client stream. */ - REXMPP_STREAM_ERROR + REXMPP_STREAM_ERROR, + /** A stream error that should be fixed by a reconnect. */ + REXMPP_STREAM_ERROR_RECONNECT }; /** @brief TLS state */ |