[php-src] PR #12785: Implement GH-12385: flush headers without body when calling flush()
| From: | nielsdos | Date: | Sat, 25 Nov 2023 23:29:12 +0000 |
| Subject: | [php-src] PR #12785: Implement GH-12385: flush headers without body when calling flush() | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-24320@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/12785
Author: nielsdos
I confirmed in my testing that two FCGI packets will be sent: one for the header and one for the
content, which is what is requested.
I did notice however that on my nginx setup only one TCP packet for the HTTP content is sent to my
browser.
However, that seems already to be the case with the flush functionality with normal body content. If
we have only few bytes to flush then nginx waits for more bytes to send in the TCP packet. When
creating a very large header is do see two times nginx sending HTTP data to my browser. I guess this
is configurable in some way but just wanted to point out that this might have limited usefulness
depending on the configuration.