aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src/ssh_connection.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2015-05-29 10:15:51 +0200
committerIngela Anderton Andin <[email protected]>2015-05-29 14:59:52 +0200
commit92a9ddf4c4169c486c1b3bfe958464a90b553289 (patch)
tree3bbdc161a96426baae206470a8e1441b4ffbe516 /lib/ssh/src/ssh_connection.erl
parentf3fefbae24a2569a13b538d80d0e99129963ebef (diff)
downloadotp-92a9ddf4c4169c486c1b3bfe958464a90b553289.tar.gz
otp-92a9ddf4c4169c486c1b3bfe958464a90b553289.tar.bz2
otp-92a9ddf4c4169c486c1b3bfe958464a90b553289.zip
ssh: handle that inet:getopts(Socket, [recbuf]) may return {ok, []}
If something bad happens and the socket is closed the call inet:getopts(Socket, [recbuf]) may return {ok, []}. We want to treat this as a fatal error and terminate gracefully. The same goes for the case that inet:getopts returns {error, Reason} that was not handled either.
Diffstat (limited to 'lib/ssh/src/ssh_connection.erl')
0 files changed, 0 insertions, 0 deletions