]> granicus.if.org Git - libevent/commit
bufferevent: move conn_address out from http into bufferevent
authorAzat Khuzhin <a3at.mail@gmail.com>
Sat, 15 Nov 2014 18:46:11 +0000 (21:46 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Tue, 18 Aug 2015 17:06:52 +0000 (20:06 +0300)
commit8bb3842552a6003f578821fad12984867757a6fb
tree43281797d6cc34f3b96bf483eb3230f25c1b8990
parentdc33c78391eb24a41215cdfea5fbdcfe90140405
bufferevent: move conn_address out from http into bufferevent

In http the only case when when we could store it is when we already
connected, *but* if we are doing request using domain name, then we need
to do request to nameserver to get IP address, and this is handled by
bufferevent.
So when we have IP address (from nameserver) and don't have connection
to this IP address, we could already cache it to avoid extra DNS
requests (since UDP is slow), and we can't do this from http layer, only
from bufferevent.
bufferevent-internal.h
bufferevent_sock.c
http-internal.h
http.c
include/event2/http.h