summaryrefslogtreecommitdiff
path: root/http-internal.h
diff options
context:
space:
mode:
authorAzat Khuzhin <a3at.mail@gmail.com>2014-11-15 21:46:11 +0300
committerAzat Khuzhin <a3at.mail@gmail.com>2015-08-18 20:06:52 +0300
commit8bb3842552a6003f578821fad12984867757a6fb (patch)
tree43281797d6cc34f3b96bf483eb3230f25c1b8990 /http-internal.h
parentdc33c78391eb24a41215cdfea5fbdcfe90140405 (diff)
downloadlibevent-8bb3842552a6003f578821fad12984867757a6fb.tar.gz
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.
Diffstat (limited to 'http-internal.h')
-rw-r--r--http-internal.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/http-internal.h b/http-internal.h
index a83160c8..6e1b2147 100644
--- a/http-internal.h
+++ b/http-internal.h
@@ -101,13 +101,6 @@ struct evhttp_connection {
struct event_base *base;
struct evdns_base *dns_base;
int ai_family;
-
- /* Saved conn_addr, to extract IP address from it.
- *
- * Because some servers may reset/close connection without waiting clients,
- * in that case we can't extract IP address even in close_cb.
- * So we need to save it, just after we connected to remote server. */
- struct sockaddr_storage *conn_address;
};
/* A callback for an http server */