| Issue 3: | Needs a check on closed socket before read | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Closing a socket at one end would cause recv to go into an infinite loop. Fix it by not only checking on ret==-1, but also on first read: ret==0 (indicates socket is closed) |