My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 3: Needs a check on closed socket before read
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by philipva...@gmail.com, Apr 23, 2010
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)




Powered by Google Project Hosting