I\'m currently maintaining some web server software and I need to perform a lot of I/O operations. The read(), write(), close() and
read()
write()
close()
Transport endpoint is not connected
The socket is associated with a connection-oriented protocol and has not been connected. This is usually a programming flaw.
From: http://www.wlug.org.nz/ENOTCONN