summaryrefslogtreecommitdiff
path: root/src/lib/libtls/tls_client.c
diff options
context:
space:
mode:
authorbluhm <>2015-09-08 17:28:47 +0000
committerbluhm <>2015-09-08 17:28:47 +0000
commit57ddc6c63a7401c575cb57d4a2d6dfa685bf5ffa (patch)
tree5611e7a32100893f2356bb503fa3c5443a89b3a7 /src/lib/libtls/tls_client.c
parent7e148f977119e2cb2058b9cf3eeb192afd550b41 (diff)
downloadopenbsd-57ddc6c63a7401c575cb57d4a2d6dfa685bf5ffa.tar.gz
openbsd-57ddc6c63a7401c575cb57d4a2d6dfa685bf5ffa.tar.bz2
openbsd-57ddc6c63a7401c575cb57d4a2d6dfa685bf5ffa.zip
Netcat could hang during write(2) although poll(2) reports that the
socket is writeable. This happens because netcat tries to write more than the low water mark of the socket write buffer. With a non-blocking socket you may get a short write, otherwise it blocks. The latter could cause a total hang of the netcat process depending on the upper protocol. So make the network connection non-blocking. OK claudio@ millert@
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions