On Tue, Nov 27, 2012 at 4:48 PM, Ben Short <b...@benshort.co.uk> wrote: > Hi, > > Is it possible to get socket errors from within the http request callback? I > need to find out if the requested timed out or the connection was refused > etc.
Libevent 2.1.2-alpha added a patch to try to make errno (or EVUTIL_SOCKET_ERROR() for the portable version) give a reliable error code in the failing case. This was commit 36d0ee5 by Patrick Pelletier. Try it out; does it work for you? yrs, -- Nick *********************************************************************** To unsubscribe, send an e-mail to majord...@freehaven.net with unsubscribe libevent-users in the body.