On Sun, Sep 30, 2018 at 2:22 PM Willy Tarreau <[email protected]> wrote:
> > As seen the timeout which I believe is the culprit is the `timeout
> > client 30s` which I guess is quite enough.
>
> I tend to consider that if the response starts to be sent,
> then the most expensive part was done and it'd better be completed
> otherwise the client will try again and inflict the same cost to the
> server again.


I prefer shorter timeout values because on the server side I have
uWSGI with Python, and with its default model (one process / request
at one time), having long outstanding connections could degrade the
user experience.


> You should probably increase this enough so that you
> don't see unexpected timeouts anymore, and rely on tcp-ut to cut early
> if a client doesn't read the data.


One question about this:  if the client gradually reads from the
(server side) buffer, but it doesn't completely clears it, having this
`TCP_USER_TIMEOUT` configured would consider this connection "live"?
More specifically, say there is 4MB in the server buffer and the
client "consumes" (i.e. acknowledges) only small parts of it, would
the timeout apply as:
(A) until the entire buffer is cleared, or
(B) until at least "some" amount of data is read;

Thanks,
Ciprian.

Reply via email to