diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2023-04-17 01:31:01 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2023-05-03 23:11:33 -0400 |
commit | 4d04833fa8813cf2e1272d94524da774aa902f6c (patch) | |
tree | 4916c52fc3f8cb0b5eedc0280e34cc25c1663989 /src/mod_cgi.c | |
parent | 3915129e10cc0920ba9a9e1156108496bfcaa19a (diff) | |
download | lighttpd-git-4d04833fa8813cf2e1272d94524da774aa902f6c.tar.gz |
[multiple] optimistic client read only if HTTP/1.x
skip optimistic client read if http version >= HTTP/2
Diffstat (limited to 'src/mod_cgi.c')
-rw-r--r-- | src/mod_cgi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mod_cgi.c b/src/mod_cgi.c index a245a076..6cc7b5af 100644 --- a/src/mod_cgi.c +++ b/src/mod_cgi.c @@ -728,7 +728,8 @@ static int cgi_write_request(handler_ctx *hctx, int fd) { /*(r->conf.stream_request_body & FDEVENT_STREAM_REQUEST)*/ if (!(r->conf.stream_request_body & FDEVENT_STREAM_REQUEST_POLLIN)) { r->conf.stream_request_body |= FDEVENT_STREAM_REQUEST_POLLIN; - r->con->is_readable = 1; /* trigger optimistic read from client */ + if (r->http_version <= HTTP_VERSION_1_1) + r->con->is_readable = 1;/* trigger optimistic client read */ } } struct fdevents * const ev = hctx->ev; |