[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sockets exn- one day i'll learn to put things down



On 4 Nov 2011, at 21:16, Richard Mortier wrote:

> let close t =
>  R.close t.fd;
>  Lwt.wakeup t.abort_u ();
>  return ()
> 

The try/catch would need to go locally here; can you try

let close t =
  R.close t.fd;
  (try Lwt.wakeup t.abort_u () with _ -> ());
  return ()

This should make multiple close() calls safe.

Anil



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.