summaryrefslogtreecommitdiff
path: root/evrpc.c
diff options
context:
space:
mode:
authorAzat Khuzhin <a3at.mail@gmail.com>2013-03-21 13:55:40 +0400
committerNick Mathewson <nickm@torproject.org>2013-04-25 15:11:44 -0400
commit7b077194cc8fd38808e3f210fc090aedb5df25d5 (patch)
treef7da3a0a774ef4c48e305353c0a2b06f81a347a5 /evrpc.c
parentf935e2159a128f07a2172ae139236e7f0b415e40 (diff)
downloadlibevent-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/evrpc.c b/evrpc.c
index fd1f67c0..8d8ecc5a 100644
--- a/evrpc.c
+++ b/evrpc.c
@@ -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);
}
/*