Hi,
I was wondering why mod_http2 currently uses a default window size of 65536.
The http2 protocol defines a default window size of 65535, just 1 byte less
than the current default. Changing the default requires transferring this
setting to every client in the initial settings frame, while sticking to
65535 would allow not doing that.
I can imagine that a completely different default makes sense (and allowing
to configure this certainly does), but this 1 byte of the protocol default
doesn't make much sense to me.
This is just 6 bytes wasted in the handshake for no obvious benefit.
I would recommend changing the default to 65535 or perhaps to something
completely different. (1MB. Don't know). But sending a setting that is less
than 0.002% off the protocol default doesn't make much sense to me.
Note that this size is not really used by httpd itself. This size is used by
clients that need to transfer request bodies to httpd. This number of bytes
specifies the maximum number of bytes the client is allowed to send before
it needs to receive a WINDOW_UPDATE from the server, allowing it to transfer
more data.
The client determines the default in the other direction.
Bert