[erlang-patches] Fix type of error Reason on gen_tcp:send/2

Sean Cribbs sean@REDACTED
Wed Feb 6 23:39:47 CET 2013


When the TCP socket is in passive mode, it is possible that a close
message has not been delivered to the controlling process before
calling send/2. This results in the returning {error, closed} to the
caller, in the same way that recv/2,3 does. This patch adjusts the
type of the error "Reason" to include the atom 'closed'.

As this is more of a documentation concern, I have based the patch off 'maint'.

git fetch git://github.com/seancribbs/otp.git gen_tcp_send_error_closed

https://github.com/seancribbs/otp/compare/erlang:maint...gen_tcp_send_error_closed
https://github.com/seancribbs/otp/compare/erlang:maint...gen_tcp_send_error_closed.patch

-- 
Sean Cribbs <sean@REDACTED>
Software Engineer
Basho Technologies, Inc.
http://basho.com/



More information about the erlang-patches mailing list