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

Re: [Libevent-users]How to distinguish network error from high delay network when using evhttp?



I've try that but unfortunately it doesn't work as expected. when request failed, libevent doesn't change errno....


2013/8/20 Mark Ellzey <mthomas@xxxxxxxxxx>
On Tue, Aug 20, 2013 at 09:23:36PM +0800, ????????? wrote:
> how to? or what API can I call to get the errno?
>

#include <errno.h>

...
printf("%d (%s)\n", errno, strerror(errno));
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.