Re: [Libevent-users] RPC: patch for cancelling requests

2011-02-26 Thread Christophe Fillot
Nick Mathewson wrote: Hello Nick, It looks plausible, though I haven't had a chance to review it too closely yet. I would like to have unit tests for this particular case too, if at all possible. No problem, I'll try to make some examples soon. One thing to watch out for in this code is th

Re: [Libevent-users] RPC: patch for cancelling requests

2011-02-25 Thread Nick Mathewson
On Fri, Feb 25, 2011 at 10:38 AM, Christophe Fillot wrote: > Hello, > > The following patch allows to delete a RPC pool (with evrpc_pool_free()), > including > all requests which have already started. The user-defined callback is called > with > a new status (EVRPC_STATUS_ERR_ABORTED) which allows

[Libevent-users] RPC: patch for cancelling requests

2011-02-25 Thread Christophe Fillot
Hello, The following patch allows to delete a RPC pool (with evrpc_pool_free()), including all requests which have already started. The user-defined callback is called with a new status (EVRPC_STATUS_ERR_ABORTED) which allows to properly release memory used for message requests and replies.