]> granicus.if.org Git - apache/commit
http: add ap_fgetline() and AP_GETLINE_NONBLOCK flag.
authorYann Ylavic <ylavic@apache.org>
Fri, 20 Apr 2018 14:30:19 +0000 (14:30 +0000)
committerYann Ylavic <ylavic@apache.org>
Fri, 20 Apr 2018 14:30:19 +0000 (14:30 +0000)
commit57383650238006fdeed8e7900a8cfa4a807c0cf3
tree35e37c0a23de9285b2a2affa76c78fdd58d59b6f
parent15facfd9c996c361eb958b7b33b2aa3cbaabf79a
http: add ap_fgetline() and AP_GETLINE_NONBLOCK flag.

It allows to read a line directly from an input filter, in blocking mode
or not. Since no request_rec is needed, a pool may be given.

Existing ap_[r]getline() function are now based off ap_fgetline() by calling:
    ap_fgetline(s, n, read, r->proto_input_filters, flags, bb, r->pool);

Will follow up with a new ap_get_mime_headers_*() flavor which can be used by
any filter that needs non-blocking and not necessarily has a request_rec (e.g.
ap_http_filter() to read proxied response trailers).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1829659 13f79535-47bb-0310-9956-ffa450edef68
include/ap_mmn.h
include/http_protocol.h
server/protocol.c