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

Sean Cribbs <>
Mon Feb 11 15:15:04 CET 2013


ping

On Wed, Feb 6, 2013 at 4:39 PM, Sean Cribbs <> wrote:
> 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 <>
> Software Engineer
> Basho Technologies, Inc.
> http://basho.com/



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


More information about the erlang-patches mailing list