diff options
Diffstat (limited to 'http-internal.h')
-rw-r--r-- | http-internal.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/http-internal.h b/http-internal.h index 98e64efb..7fab6413 100644 --- a/http-internal.h +++ b/http-internal.h @@ -83,7 +83,7 @@ struct evhttp_connection { #define EVHTTP_CON_OUTGOING 0x0002 /* multiple requests possible */ #define EVHTTP_CON_CLOSEDETECT 0x0004 /* detecting if persistent close */ - int timeout; /* timeout in seconds for events */ + struct timeval timeout; /* timeout for events */ int retry_cnt; /* retry count */ int retry_max; /* maximum number of retries */ @@ -152,7 +152,7 @@ struct evhttp { /* NULL if this server is not a vhost */ char *vhost_pattern; - int timeout; + struct timeval timeout; size_t default_max_headers_size; ev_uint64_t default_max_body_size; @@ -165,6 +165,8 @@ struct evhttp { don't match. */ void (*gencb)(struct evhttp_request *req, void *); void *gencbarg; + struct bufferevent* (*bevcb)(struct event_base *, void *); + void *bevcbarg; struct event_base *base; }; |