RE: readping fd's and flushing buffers

2003-01-10 Thread Simon Marlow
A related problem... connections are refused when using accept if the hostname doesn't resolve. Maybe something like this would help, unless there is a better way? accept sock = do ~(sock', (SockAddrInet port haddr)) - Socket.accept sock (HostEntry peer _ _ _) - ((getHostByAddr AF_INET

Re: readping fd's and flushing buffers

2003-01-09 Thread Keean Schupke
This may be related to the answer just given to do with finalizing the Handles, as I have a problem with sockets hanging around after a host name resolution has failed (using the simple socket library). Having looked at the code I would like to suggest the following change: connectTo hostname

RE: readping fd's and flushing buffers

2003-01-09 Thread Simon Marlow
This may be related to the answer just given to do with finalizing the Handles, as I have a problem with sockets hanging around after a host name resolution has failed (using the simple socket library). Having looked at the code I would like to suggest the following change: connectTo

RE: readping fd's and flushing buffers

2003-01-09 Thread Keean
- socketToHandle sock' ReadWriteMode return (handle, peer, port) Regards, Keean Schupke. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Simon Marlow Sent: 09 January 2003 13:18 To: Keean Schupke; [EMAIL PROTECTED] Subject: RE: readping fd's