mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
Merge remote branch 'niels/http_chunk'
This commit is contained in:
commit
cfe7a9ff4c
5
http.c
5
http.c
@ -2066,6 +2066,11 @@ evhttp_send(struct evhttp_request *req, struct evbuffer *databuf)
|
||||
{
|
||||
struct evhttp_connection *evcon = req->evcon;
|
||||
|
||||
if (evcon == NULL) {
|
||||
evhttp_request_free(req);
|
||||
return;
|
||||
}
|
||||
|
||||
EVUTIL_ASSERT(TAILQ_FIRST(&evcon->requests) == req);
|
||||
|
||||
/* we expect no more calls form the user on this request */
|
||||
|
@ -374,7 +374,12 @@ void evhttp_request_own(struct evhttp_request *req);
|
||||
/** Returns 1 if the request is owned by the user */
|
||||
int evhttp_request_is_owned(struct evhttp_request *req);
|
||||
|
||||
/** Returns the connection object associated with the request or NULL */
|
||||
/**
|
||||
* Returns the connection object associated with the request or NULL
|
||||
*
|
||||
* The server needs to either free the request explicitly or call
|
||||
* evhttp_send_reply_end().
|
||||
*/
|
||||
struct evhttp_connection *evhttp_request_get_connection(struct evhttp_request *req);
|
||||
|
||||
void evhttp_connection_set_max_headers_size(struct evhttp_connection *evcon,
|
||||
|
Loading…
x
Reference in New Issue
Block a user