8 Dec
2012
8 Dec
'12
9:38 p.m.
El 08/12/2012 04:55 a.m., Igor R escribió:
I have a problem with my program and I traced it to socket.is_open which returns as closed even while the connection is active in my server program. The client, however, can still communicate with that supposedly closed socket. The program is similar to the timeouts example. I can post all the source code if needed. is_open() merely checks whether the socket has a valid handle (descriptor), so it can be "false positive", but can't be "false negative". Show some code - perhaps you've got a race-condition? Here is the code (won't compile, thou). It is just for reviewing purposes.