diff options
author | Mickaël Rémond <mickael.remond@process-one.net> | 2009-10-19 09:36:23 +0000 |
---|---|---|
committer | Mickaël Rémond <mickael.remond@process-one.net> | 2009-10-19 09:36:23 +0000 |
commit | 006515020acfd880b02733628d0c07e142ac266e (patch) | |
tree | 79336f4745c1e225a722323c5268e2038948756f /src/ejabberd_s2s_out.erl | |
parent | Fixed more gcc signedness warnings (diff) |
Support gen_tcp send timeout: Close the connection if the other end has disconnected ungracefully or cannot keep up with the rate at which we are sending data (EJAB-926)
SVN Revision: 2671
Diffstat (limited to 'src/ejabberd_s2s_out.erl')
-rw-r--r-- | src/ejabberd_s2s_out.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ejabberd_s2s_out.erl b/src/ejabberd_s2s_out.erl index 66396e1e..8fb82c07 100644 --- a/src/ejabberd_s2s_out.erl +++ b/src/ejabberd_s2s_out.erl @@ -268,6 +268,7 @@ open_socket2(Type, Addr, Port) -> case (catch ejabberd_socket:connect(Addr, Port, [binary, {packet, 0}, {send_timeout, ?TCP_SEND_TIMEOUT}, + {send_timeout_close, true}, {active, false}, Type], Timeout)) of {ok, _Socket} = R -> R; |