https://redmine.lighttpd.net/https://redmine.lighttpd.net/favicon.ico?13667327412005-08-22T15:44:04Zlighty labsLighttpd - Bug #220: cgi cpu load/high memory usagehttps://redmine.lighttpd.net/issues/220?journal_id=5062005-08-22T15:44:04ZAnonymous
<ul></ul><p>uname -srm<br />FreeBSD 4.11-RELEASE-p11 i386</p>
<pre><code>gcc -v<br />Using builtin specs.<br />gcc version 2.95.4 20020320 [[FreeBSD]]</code></pre>
<p>(for what it's worth.. )</p>
<p>-- bcook-pok</p> Lighttpd - Bug #220: cgi cpu load/high memory usagehttps://redmine.lighttpd.net/issues/220?journal_id=5072005-08-22T16:27:00ZAnonymous
<ul></ul><p>poklib.org/~bcook/lighttpd-3.trace.bz2</p>
<p>MD5 (lighttpd-3.trace.bz2) = 5c1ae4c12d3649ec46f07526434593a6<br />984K lighttpd-3.trace.bz2</p>
<p>-- bcook-pok</p> Lighttpd - Bug #220: cgi cpu load/high memory usagehttps://redmine.lighttpd.net/issues/220?journal_id=5082005-08-23T09:14:30Zjan
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Assigned</i></li></ul><p>ok, this happens if between shutdown of the script and the close of the connection is a larger gap.</p>
<pre>
#!/usr/bin/perl
$| = 1;
print "Status: 302 Moved\r\nLocation: http://localhost:1025/\r\n\r\n";
sleep 10;
</pre> Lighttpd - Bug #220: cgi cpu load/high memory usagehttps://redmine.lighttpd.net/issues/220?journal_id=5092005-08-23T10:44:49Zjan
<ul></ul><p>Please verify that changeset r613 fixes this problem.</p> Lighttpd - Bug #220: cgi cpu load/high memory usagehttps://redmine.lighttpd.net/issues/220?journal_id=5102005-08-23T17:50:19ZAnonymous
<ul></ul><p>Seems to be working fine. I will run w/ it for a day and if there are no other problems I would say it's a good patch.</p>
<p>btw, I did need to edit the returned patch file to be the following</p>
<pre>
--- src/mod_cgi.c (revision 612)
+++ src/mod_cgi.c (revision 613)
@@ -1127,12 +1127,7 @@
#ifndef __WIN32
switch(waitpid(hctx->pid, &status, WNOHANG)) {
case 0:
- /* not finished yet */
- if (con->file_started) {
- return HANDLER_GO_ON;
- } else {
- return HANDLER_WAIT_FOR_EVENT;
- }
+ return HANDLER_WAIT_FOR_EVENT;
case -1:
if (errno == EINTR) return HANDLER_WAIT_FOR_EVENT;
</pre>
<p>I needed to get the src/mod_cgi.c path cleaned up to work w/ what I had..</p>
<p>(minor adjustment)</p>
<p>-- Mystique</p> Lighttpd - Bug #220: cgi cpu load/high memory usagehttps://redmine.lighttpd.net/issues/220?journal_id=5112005-08-24T21:52:03Zjan
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Fixed</i></li><li><strong>Resolution</strong> set to <i>fixed</i></li></ul><p>two handlers were registrated and both have been called.</p>
<p>changeset r619 is fixing this.</p> Lighttpd - Bug #220: cgi cpu load/high memory usagehttps://redmine.lighttpd.net/issues/220?journal_id=5122007-03-05T03:53:22Zjwmcglynn
<ul><li><strong>Status</strong> changed from <i>Need Feedback</i> to <i>Fixed</i></li><li><strong>Resolution</strong> set to <i>fixed</i></li></ul><p>Fixed in r619, this bug shouldn't be reopened.</p>