diff options
author | Azat Khuzhin <a3at.mail@gmail.com> | 2013-03-21 13:55:40 +0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-04-25 15:11:44 -0400 |
commit | 7b077194cc8fd38808e3f210fc090aedb5df25d5 (patch) | |
tree | f7da3a0a774ef4c48e305353c0a2b06f81a347a5 /evrpc.c | |
parent | f935e2159a128f07a2172ae139236e7f0b415e40 (diff) | |
download | libevent-7b077194cc8fd38808e3f210fc090aedb5df25d5.tar.gz |
Add new error_cb for actual reporting of HTTP request errors.
It is useful to know why you callback called with NULL (i.e. it failed),
for example if you set max_body with evhttp_connection_set_max_body_size()
you must know that it failed because of body was longer than this size.
(Commit message tweaked by Nick)
Diffstat (limited to 'evrpc.c')
-rw-r--r-- | evrpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -977,7 +977,7 @@ evrpc_request_timeout(evutil_socket_t fd, short what, void *arg) struct evhttp_connection *evcon = ctx->evcon; EVUTIL_ASSERT(evcon != NULL); - evhttp_connection_fail_(evcon, EVCON_HTTP_TIMEOUT); + evhttp_connection_fail_(evcon, EVREQ_HTTP_TIMEOUT); } /* |