[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] http request errors



I'll give it a go. Can't use an alpha release in our production app though.

On Nov 28, 2012 2:42 AM, "Nick Mathewson" <nickm@xxxxxxxxxxxxx> wrote:
On Tue, Nov 27, 2012 at 4:48 PM, Ben Short <ben@xxxxxxxxxxxxxx> 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 majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.