On Wed, 30 Oct 2002, Alistair Young wrote:

> Hi all,
> Thanks to all those who replied but it seems that it's not possible to
> do what I need in Apache 1.3 -> I'll have to go to Apache 2.0 but
> unfortunately PHP isn't ready for that yet!
> It looks like Apache 1.3 reads a set amount from the client when a
> request is made but sniffing the raw packets confirms that the client
> has already sent ALL the POST headers to Apache. Apache just doesn't
> read them all from the wire. This means that you can access at most the
> first two POST vars without calling ap_should_client_block() - a nice
> enhancement would be if Apache actually read up to EOF on the socket
> which would mean it had all the POST vars in:
> r->connection->client->inptr

Umh... no.

1. The client will only send as much to the server as the TCP receive
buffer size allows.  Then it will block until the server reads it.

2. It would be a major bug if Apache read and allocated memory for the
entire request body before allowing modules to handle it.  This
request body could be huge, far bigger than the amount of memory Apache
should allocate, or even bigger than what it _COULD_ allocate on the
system.

Reply via email to