Re: [PATCH] Do not reuse persistent connections for PUTs

From: Henrik Nordström <henrik_at_henriknordstrom.net>
Date: Thu, 30 Aug 2012 05:11:16 +0200

ons 2012-08-29 klockan 15:32 -0600 skrev Alex Rousskov:

> Today, we have a choice:
>
> A. Fail some PUTs. Close fewer pconns (current code).
> B. Handle all PUTs. Open more connections (patched code).
>
> If this patch is accepted, performance bug 3398 will resurface. Henrik,
> do you think committing the patch is the right decision here even though
> it will reopen bug 3398?

Yes, but with a plan to fix it correctly.

A suggested correct fix for 3398 is to make use of Expect: 100-continue.
This delays sending the body a bit, allowing detection of broken
connections before starting to send the body.

An optimization from that is to add some buffering of request bodies to
allow skipping the 100-continue to speed up forwarding.

Regards
Henrik

> The bug title is wrong. There is a long discussion in the bug report
> about what the bug is really about. I think a better bug title would be:
> "persistent server connection closed before PUT".

yes.

Fix the bug title, reopen it with comment above and restore the check.

Regatds
Henrik
Received on Thu Aug 30 2012 - 03:11:21 MDT

This archive was generated by hypermail 2.2.0 : Fri Aug 31 2012 - 12:00:14 MDT