diff options
author | Loïc Hoguin <[email protected]> | 2011-03-21 22:57:07 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2011-03-21 22:57:07 +0100 |
commit | 1ebfa5eb1f5003c16c3396ec52aafc35926dd7da (patch) | |
tree | aceb6315d636ad2510cb12b05f3b33a2873b18e0 /src/cowboy_tcp_transport.erl | |
parent | 545116edfa963b02227f3a6c8b70f1a1d04f37ce (diff) | |
download | cowboy-1ebfa5eb1f5003c16c3396ec52aafc35926dd7da.tar.gz cowboy-1ebfa5eb1f5003c16c3396ec52aafc35926dd7da.tar.bz2 cowboy-1ebfa5eb1f5003c16c3396ec52aafc35926dd7da.zip |
Fix spec for cowboy_tcp_transport:close/1.
Apparently the documentation is wrong for gen_tcp:close/1, it returns only ok.
Diffstat (limited to 'src/cowboy_tcp_transport.erl')
-rw-r--r-- | src/cowboy_tcp_transport.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_tcp_transport.erl b/src/cowboy_tcp_transport.erl index dec7940..8dcc9d7 100644 --- a/src/cowboy_tcp_transport.erl +++ b/src/cowboy_tcp_transport.erl @@ -55,6 +55,6 @@ controlling_process(Socket, Pid) -> peername(Socket) -> inet:peername(Socket). --spec close(Socket::socket()) -> ok | {error, Reason::posix}. +-spec close(Socket::socket()) -> ok. close(Socket) -> gen_tcp:close(Socket). |