[Log4cplus-devel] [ log4cplus-Bugs-3585765 ] ServerSocket::accept doesn't abort when the socket is
Logging Framework for C++
Brought to you by:
wilx
From: SourceForge.net <no...@so...> - 2012-11-09 14:27:15
|
Bugs item #3585765, was opened at 2012-11-09 06:27 Message generated for change (Tracker Item Submitted) made by csteenwyk You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429073&aid=3585765&group_id=40830 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Chris Steenwyk (csteenwyk) Assigned to: Nobody/Anonymous (nobody) Summary: ServerSocket::accept doesn't abort when the socket is closed Initial Comment: When working to create a logging server class, I created a thread that calls ServerSocket::accept. This function uses the winsock accept function which blocks. If this is blocking, the close command on the socket waits for it to return, so the thread would hang causing the app to not close in windows. I updated the socket-win32.cxx to use the select function in a loop to prevent this issue. See included diff. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429073&aid=3585765&group_id=40830 |