async socket logic cleanups
Closed / Accepted1994512fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2008-06-15 18:33:20
Attached patch streamlines the async socket logic in unix/tclUnixChan.c. Summary of changes: + Consolidate error reporting paths in CreateSocket() + Restore blocking mode immediately after connect(); + File descriptor blocking mode is now consistent with [fconfigure ... -blocking] setting even while async connect is in progress + Fix incorrect comments in WaitForConnect() header.
jenglishplain2008-06-16 01:33:21
File Added - 281477: cleanup-async-connect.patch
jenglishplain2008-06-16 01:37:54
Logged In: YES user_id=68433 Originator: YES See also #1960647. I have a more aggressive version of this patch that skips WaitForConnect() altogether (hence removing the need for TclUnixWaitForFile in the first place). I've tested and verified that it works on Linux, but can't confirm whether the simpler approach is guaranteed to work everywhere. In any event, TclUnixWaitForFile() is more complicated than it needs to be, and is subject to further simplifications.
jenglishplain2008-08-06 06:47:40
Logged In: YES user_id=68433 Originator: YES Patch committed to HEAD.
Log in (anonymous is fine) to add a comment.
Attachments:
- cleanup-async-connect.patch [download] added by jenglish on 2008-06-16 01:33:20. [details]