On Thu, Sep 25, 2025 at 01:31:07PM +0200, Claudio Jeker wrote:
> On Thu, Sep 25, 2025 at 01:14:16PM +0200, Florian Obser wrote:
> > Nobody stepped up to fix chunked encoding in fastcgi. I think we should
> > disable it.
> > OK?
>
> No.
Just to be clear, this turns off chunked encoding for output but the
problem is when data is sent with chunked encoding in a POST. I doubt that
forcing clt->clt_fcgi.chunked = 0 will fix chunked encoding handling
during input processing. My fear is that httpd has no code to handle
chunked encoding in POST request (as in sent by the client) and all of
that needs to be written first.
> > diff --git server_fcgi.c server_fcgi.c
> > index 70bd78c0820..303ca113d23 100644
> > --- server_fcgi.c
> > +++ server_fcgi.c
> > @@ -389,7 +389,8 @@ server_fcgi(struct httpd *env, struct client *clt)
> > fcgi_add_stdin(clt, NULL);
> > }
> >
> > - if (strcmp(desc->http_version, "HTTP/1.1") == 0) {
> > + /* chunked is not working correctly */
> > + if (0 && strcmp(desc->http_version, "HTTP/1.1") == 0) {
> > clt->clt_fcgi.chunked = 1;
> > } else {
> > /* HTTP/1.0 does not support chunked encoding */
> >
> > --
> > In my defence, I have been left unsupervised.
> >
>
> --
> :wq Claudio
>
--
:wq Claudio