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

[Libevent-users] bufferevent_socket_connect_hostname and evdns_base not working



Hi,

I'm trying to get a async dns lookup with
bufferevent_socket_connect_hostname but I always get 11003 (dns_error)
in bufferevent_connect_getaddrinfo_cb.
The thing is if I call bufferevent_socket_connect_hostname with
evdns_base == NULL it connects just fine.

I'm using latest libevent (2.0.14) on windows 7, using vs 2010.

event_cb(bufferevent * bev=0x00000000138634e0, short events=32, void *
ptr=0x0000000013862230)
bufferevent_run_eventcb(bufferevent * bufev=0x00000000138634e0, short what=32)
bufferevent_connect_getaddrinfo_cb(int result=11003, addrinfo *
ai=0x0000000000000000, void * arg=0x00000000138634e0)
evdns_getaddrinfo_gotresolve(int result=2, char type=0, int count=0,
int ttl=0, void * addresses=0x0000000000000000, void *
arg=0x00000000138998d0)
reply_run_callback(deferred_cb * d=0x0000000013a93540, void *
user_pointer=0x00000000138998d0)
event_process_deferred_callbacks(deferred_cb_queue *
queue=0x0000000013862908, int * breakptr=0x00000000138628e0)
event_process_active(event_base * base=0x0000000013862800)
event_base_loop(event_base * base=0x0000000013862800, int flags=2)


/Juan
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.