]> granicus.if.org Git - ejabberd/commit
XEP-0198: Don't exit on socket send failure
authorHolger Weiss <holger@zedat.fu-berlin.de>
Fri, 23 May 2014 09:38:54 +0000 (11:38 +0200)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Fri, 23 May 2014 09:38:54 +0000 (11:38 +0200)
commitab9667f9178548fcb6d68f1028cdfc2e727cac8a
tree9a1c2d2961806a05a1637b4ed8e9a7393f8fd78b
parent6baf3a24de429ed6cf27b267d5b91ef3d64114bf
XEP-0198: Don't exit on socket send failure

If stream management is enabled, don't exit the c2s process when
ejabberd_socket:send/2 fails, but close the socket instead.  This gives
the client a chance to resume the session.

Thanks go to Matthias Rieber for reporting the issue, providing detailed
logs, and testing the fix.
src/ejabberd_c2s.erl