aboutsummaryrefslogtreecommitdiffstats
path: root/parser.h
diff options
context:
space:
mode:
authoripknHama <ipknhama@gmail.com>2014-07-29 20:20:50 +0900
committeripknHama <ipknhama@gmail.com>2014-07-29 20:20:50 +0900
commitb7781b20ff8675ca0c860b017f3c3e7817b6eb37 (patch)
tree34685a9625b07406260417c9aee34ed127e80ccb /parser.h
parent404b0b966ee85ffab87383610d48310e3ef6c537 (diff)
downloadcrow-b7781b20ff8675ca0c860b017f3c3e7817b6eb37.tar.gz
crow-b7781b20ff8675ca0c860b017f3c3e7817b6eb37.zip
Add HTTP/1.1 persistent connection timeout
manage Connection object life cycle using shared_ptr
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/parser.h b/parser.h
index 87d9562..f504248 100644
--- a/parser.h
+++ b/parser.h
@@ -97,6 +97,7 @@ namespace crow
http_parser_init(this, HTTP_REQUEST);
}
+ // return false on error
bool feed(const char* buffer, int length)
{
int nparsed = http_parser_execute(this, &settings_, buffer, length);