Merge remote branch 'niels/http_chunk'

This commit is contained in:
Nick Mathewson 2010-02-04 10:15:39 -05:00
commit cfe7a9ff4c
2 changed files with 11 additions and 1 deletions

5
http.c
View File

@ -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 */

View File

@ -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,