diff options
author | Greg Hazel <ghazel@gmail.com> | 2018-02-11 16:28:58 -0800 |
---|---|---|
committer | Azat Khuzhin <a3at.mail@gmail.com> | 2018-04-24 02:29:17 +0300 |
commit | 367cd9e5c2b8e3f9b8dbed40bfe8a0ed79285c36 (patch) | |
tree | 2ad76775b014805c91b543c8111d31b6c419aa00 /http.c | |
parent | a3d8f2e09302536c6c0ffc3ccb1fc6f43b51dc4f (diff) | |
download | libevent-367cd9e5c2b8e3f9b8dbed40bfe8a0ed79285c36.tar.gz |
Fix evhttp_connection_get_addr() fox incomming http connections
Install conn_address of the bufferevent on incomping http connections
(even though this is kind of subsytem violation, so let's fix it in a
simplest way and thinkg about long-term solution).
Fixes: #510
Closes: #595 (pick)
Diffstat (limited to 'http.c')
-rw-r--r-- | http.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -4221,6 +4221,7 @@ evhttp_get_request_connection( bufferevent_enable(evcon->bufev, EV_READ); bufferevent_disable(evcon->bufev, EV_WRITE); bufferevent_setfd(evcon->bufev, fd); + bufferevent_socket_set_conn_address_(evcon->bufev, sa, salen); return (evcon); } |