in reply to Re: Detecting Dead Socket Connection
in thread Detecting Dead Socket Connection
The problem here with eof() is that eof() reads a byte from the handle and then pushes it back on. The problem is that it can't read a byte until one is available (using ugetc()), so it blocks.