[Moin-user] long delays with CVS snapshot

Brian Dorsey brian at dorseys.org
Fri Jan 4 08:41:12 EST 2002


Ok, I've got these prints added:

before parsing  -- in cgimain.py
begin send_page  -- in Page.py
end send_page  -- in Page.py
before flush  -- in cgimain.py
after flush  -- in cgimain.py

I'm tailing err_log and while clicking through the wiki looking at existing pages, and I see all five prints in the order above. But, when I try to do a search using the bottom search box, I don't see any of them... yet I'm still seeing the MoinMoin header correctly. Perhaps the err_log messages aren't getting added because Python isn't exiting normally? 

Also, it looks to me like the Content-Length header is getting added by IIS iteself, because it's way down at the end of the page, just for kicks, I'm going to append the HTML to the end of this message.

Should I try to set this version up on a Linux box as well, to see if it's IIS specific? Anyone else out there seen this happen? (timeouts whenever doing a search using the footer search box)


Take care,
-Brian





==========================================================
<html><head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=iso-8859-1">

<META NAME="ROBOTS" CONTENT="NOINDEX,NOFOLLOW">
<title>Title search for "datga" - Database Group Wiki</title>
<link rel="stylesheet" type="text/css" href="/wiki/default.css">
<link rel="Start" href="FrontPage">
<link rel="Index" href="TitleIndex">
<link rel="Glossary" href="WordIndex">
<link rel="Help" href="HelpOnFormatting">
</head>
<body onload="window.defaultStatus='Database Group Wiki'"><a name="top"></a>
<table width="100%"><tr><td>
<a href="/wiki/moin.cgi/FrontPage"><img src="/wiki/moinmoin.gif" border=0 alt="MoinMoin"></a>
</td><td width="99%" valign="middle" class="headline"><font size="+3"> <b>
Title search for "datga"
</b></font></td>
<td valign="bottom" align="left"><font face="Verdana" size="1"><a href="/wiki/moin.cgi/UserPreferences">Brian Dorsey</a><br> </font></td>
</tr></table>

<table cellpadding=0 cellspacing=3 border=0 style="background-color:#C8C8C8;text-decoration:none">
  <tr>

    <td valign=top align=center bgcolor="#E8E8E8">
      <font face="Arial,Helvetica" size="-1">
         <b>Database Group Wiki</b> 
      </font>
    </td>
    
    <td valign=top align=center bgcolor="#E8E8E8">
      <font face="Arial,Helvetica" size="-1">
         <a style="text-decoration:none" href="/wiki/moin.cgi/FrontPage">FrontPage</a> 
      </font>
    </td>
    
    <td valign=top align=center bgcolor="#E8E8E8">
      <font face="Arial,Helvetica" size="-1">
         <a style="text-decoration:none" href="/wiki/moin.cgi/RecentChanges">RecentChanges</a> 
      </font>
    </td>

    <td valign=top align=center bgcolor="#E8E8E8">
      <font face="Arial,Helvetica" size="-1">
         <a style="text-decoration:none" href="/wiki/moin.cgi/TitleIndex">TitleIndex</a> 
      </font>
    </td>

    <td valign=top align=center bgcolor="#E8E8E8">
      <font face="Arial,Helvetica" size="-1">
         <a style="text-decoration:none" href="/wiki/moin.cgi/WordIndex">WordIndex</a> 
      </font>

    </td>    <td valign=top align=center bgcolor="#E8E8E8">
      <font face="Arial,Helvetica" size="-1">
         <a style="text-decoration:none" href="/wiki/moin.cgi/WantedPages">WantedPages</a> 
      </font>

    </td>    <td valign=top align=center bgcolor="#E8E8E8">
      <font face="Arial,Helvetica" size="-1">
         <a style="text-decoration:none" href="/wiki/moin.cgi/OrphanedPages">OrphanedPages</a> 
      </font>
    </td>
    
    <td valign=top align=center bgcolor="#E8E8E8">
      <font face="Arial,Helvetica" size="-1">
         <a style="text-decoration:none" href="/wiki/moin.cgi/HelpContents">Help</a> 
      </font>
    </td>

  </tr>
</table>

<hr>
HTTP/1.1 502 Gateway Error
Server: Microsoft-IIS/5.0
Date: Fri, 04 Jan 2002 16:31:15 GMT
Connection: close
Content-Length: 186
Content-Type: text/html

<head><title>CGI Application Timeout</title></head>
<body><h1>CGI Timeout</h1>The specified CGI application exceeded the allowed time for processing.  The server has deleted the process.

=================================================================


On Thu, Jan 03, 2002 at 10:41:14PM +0100, Juergen Hermann wrote:
> On Thu, 3 Jan 2002 10:41:22 -0800, Brian Dorsey wrote:
> 
> >When I try to do a search, it immediately redraws the header, including 'Title search for "database"' (database was my search string, so the values are being passed) but the rest of the page times out. 
> 
> When you see partial results, it obviously blocks later. What seems
> fishy here is the display of a content-length header, as a streaming
> application moinmoin does not send one (except for attachements, where
> the length is known).
> 
> And you need to print to sys.stderr (which goes to the err_log file),
> since everything printed normally goes to the browser and thus adds
> further confusion.
> 
> Add this at the very end of cgimain:
> 
> 	print >>sys.stderr, "before flush"
> 	sys.stdout.flush()
> 	print >>sys.stderr, "after flush"
> 
> If you do not see these outputs in err_log, try to add more of these in
> various parts of the program (especially the send_page method in
> Page.py) to find the place the system blocks.
> 
> Also try to add sys.stdout.close() after the flush (we get desperate
> here :).
> 
> Ciao, Jürgen
> 




More information about the Moin-user mailing list