Manifest of check-in
[406aaa947b]
- 2000-04-23 Jim Ingham <[email protected]> These changes make some error handling marginally better for Mac sockets. It is still somewhat flakey, however. * mac/tclMacSock.c (TcpClose): Add timeouts to the close - these don't seem to be honored, however. * Use a separate PB for the release, since an async connect socket will still be using the original buffer. * Make sure TCPRelease returns noErr before freeing the recvBuff. If the call returns an error, then the buffer is not right. * mac/tclMacSocket.c (CreateSocket): Add timeouts to the async create. These don't seem to trigger, however. Sigh... * mac/tclMacSocket.c (WaitForSocketEvent): If an TCP_ASYNC_CONNECT socket errors out, then return EWOULDBLOCK & error out. * mac/tclMacSock.c: (NotifyRoutine) Added a NotifyRoutine for experimenting with MacTCP.
by
jingham on
2000-04-24 06:43:29.
B 8f0cd2d9ba92eb62fec82ddad2fe103b91ea1e67
C 2000-04-23\s\sJim\sIngham\s\s<[email protected]>\r\r\s\s\s\s\s\s\s\sThese\schanges\smake\ssome\serror\shandling\smarginally\sbetter\sfor\sMac\ssockets.\s\sIt\sis\r\s\s\s\s\s\s\s\sstill\ssomewhat\sflakey,\showever.\r\r\s\s\s\s\s\s\s\s*\smac/tclMacSock.c\s(TcpClose):\sAdd\stimeouts\sto\sthe\sclose\s-\sthese\sdon't\sseem\sto\r\s\s\s\s\s\s\s\sbe\shonored,\showever.\r\s\s\s\s\s\s\s\s*\sUse\sa\sseparate\sPB\sfor\sthe\srelease,\ssince\san\sasync\sconnect\ssocket\swill\sstill\r\s\s\s\s\s\s\s\sbe\susing\sthe\soriginal\sbuffer.\r\s\s\s\s\s\s\s\s*\sMake\ssure\sTCPRelease\sreturns\snoErr\sbefore\sfreeing\sthe\srecvBuff.\s\sIf\sthe\scall\r\s\s\s\s\s\s\s\sreturns\san\serror,\sthen\sthe\sbuffer\sis\snot\sright.\r\s\s\s\s\s\s\s\s*\smac/tclMacSocket.c\s(CreateSocket):\sAdd\stimeouts\sto\sthe\sasync\screate.\s\sThese\r\s\s\s\s\s\s\s\sdon't\sseem\sto\strigger,\showever.\s\sSigh...\r\s\s\s\s\s\s\s\s*\smac/tclMacSocket.c\s(WaitForSocketEvent):\sIf\san\sTCP_ASYNC_CONNECT\ssocket\serrors\r\s\s\s\s\s\s\s\sout,\sthen\sreturn\sEWOULDBLOCK\s&\serror\sout.\r\s\s\s\s\s\s\s\s*\smac/tclMacSock.c:\s(NotifyRoutine)\sAdded\sa\sNotifyRoutine\sfor\sexperimenting\s\r\s\s\s\s\s\s\s\swith\sMacTCP.\n
D 2000-04-24T06:43:29
F ChangeLog c55f52359b80cd620915c6bc34547c9b70464f69
F library/package.tcl b626658fc51ee4b2139f6b428a89ed7809ee248f
F mac/tclMacSock.c 47e2b77e52867d5083c3769c032fa054de67b253
P d2027429495b3e6f1bf43daafa1260721e3d1807
U jingham
Z cbeedcfe4e7aa63068ba50550c8f3f7e