diff options
author | bluhm <> | 2015-09-08 17:28:47 +0000 |
---|---|---|
committer | bluhm <> | 2015-09-08 17:28:47 +0000 |
commit | 57ddc6c63a7401c575cb57d4a2d6dfa685bf5ffa (patch) | |
tree | 5611e7a32100893f2356bb503fa3c5443a89b3a7 /src/lib | |
parent | 7e148f977119e2cb2058b9cf3eeb192afd550b41 (diff) | |
download | openbsd-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 'src/lib')
0 files changed, 0 insertions, 0 deletions