aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/doc/src
diff options
context:
space:
mode:
authorRory Byrne <[email protected]>2015-05-02 20:34:24 +0100
committerRory Byrne <[email protected]>2015-06-09 20:50:14 +0100
commit0098eed847516cc6760d961421c83527816e35ae (patch)
tree0ca38a952161ce5a108d45e9e71c45a9bf37a8bd /lib/kernel/doc/src
parent4f63e427f1345b40b484ef16f6ff5e922bf14dac (diff)
downloadotp-0098eed847516cc6760d961421c83527816e35ae.tar.gz
otp-0098eed847516cc6760d961421c83527816e35ae.tar.bz2
otp-0098eed847516cc6760d961421c83527816e35ae.zip
Apply 'show_econnreset' socket option to send errors as well
Up till now all send errors have been translated into a generic {error, closed}. This patch allows {error, econnreset} to be returned on send errors when it is detected that the TCP peer has sent an RST.
Diffstat (limited to 'lib/kernel/doc/src')
-rw-r--r--lib/kernel/doc/src/inet.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/kernel/doc/src/inet.xml b/lib/kernel/doc/src/inet.xml
index a364f9e0c9..4dd9e0e221 100644
--- a/lib/kernel/doc/src/inet.xml
+++ b/lib/kernel/doc/src/inet.xml
@@ -1056,7 +1056,10 @@ setcap cap_sys_admin,cap_sys_ptrace,cap_dac_read_search+epi beam.smp
active mode, the controlling process will receive a
<c>{tcp_error, Socket, econnreset}</c> message
before the usual <c>{tcp_closed, Socket}</c>, as is
- the case for any other socket error.</p>
+ the case for any other socket error. Calls to
+ <seealso marker="gen_tcp#send/2">gen_tcp:send/2</seealso>
+ will also return <c>{error, econnreset}</c> when it
+ is detected that a TCP peer has sent an RST.</p>
<p>A connected socket returned from
<seealso marker="gen_tcp#accept/1">gen_tcp:accept/1</seealso>
will inherit the <c>show_econnreset</c> setting from the