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

Re: [Libevent-users] Re: libevent http and lost requests



On Fri, Aug 12, 2011 at 11:36 PM, Mark Ellzey <mthomas@xxxxxxxxxx> wrote:
 
Hrmm - looks like DNS

evhttp_get_request_connection(
       struct evhttp* http,
       evutil_socket_t fd, struct sockaddr *sa, ev_socklen_t salen)
{
       struct evhttp_connection *evcon;
       char *hostname = NULL, *portname = NULL;

       name_from_addr(sa, salen, &hostname, &portname);


eventually calling gethostbyaddr().


My guess is that it can't resolve the address.

If this is the case, that's actually not the right thing to do (on
levent side).


I did not think about DNS.
Nginx and my http servers serve about ~10 requests from one IP before appearing timeout error, so DNS cache should already have answers for that queries.
Maybe we have some problems with DNS server, I will check it.
Thank you.