[ZCM] [ZC] 2058/ 1 Request "Drop dead requests"
Collector: Zope Bugs, Features,
and Patches ...
zope-coders-admin at zope.org
Mon Apr 3 00:41:40 EDT 2006
Issue #2058 Update (Request) "Drop dead requests"
Status Pending, ZServer/feature+solution medium
To followup, visit:
http://www.zope.org/Collectors/Zope/2058
==============================================================
= Request - Entry #1 by lalo on Apr 3, 2006 12:41 am
Uploaded: "zserver-svn060404-drop-dead.diff"
- http://www.zope.org/Collectors/Zope/2058/zserver-svn060404-drop-dead.diff/view
If your site is under heavy load, requests will accumulate on the ZServer queue. By the time the publisher gets them, some requests may be "dead" (closed from the other side -- the browser timed out, for example). This patch makes ZServer drop these requests, rather than wasting precious seconds publishing them. The result is a more responsive server, and less vulnerable to DoS attacks.
Caveat: Apache doesn't seem to close the socket if the other end closes (when running behind mod_proxy); so according to my tests, this is potentially useless in the most common Zope configuration out there.
Patch developed under commission for Exoweb.net.
==============================================================
More information about the Zope-Collector-Monitor
mailing list