CVSROOT: /cvs Module name: src Changes by: bl...@cvs.openbsd.org 2015/09/08 11:28:47
Modified files: usr.bin/nc : netcat.c Log message: 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@