[Speedycgi-users] Some information for SpeedyCGI users
Brought to you by:
samh
|
From: Chung-Kie T. <tu...@tu...> - 2003-06-12 07:01:32
|
Hello, While testing speedycgi + openwebmail in all circumstances, I found some problems and finally got them fixed. I think the information may be also useful to other speedycgi users so I post them here. 1. speedycgi + openwebmail doesn't work on Redhat9? Speedycgi could be compiled on Redhat9 with the fix in http://sourceforge.net/mailarchive/forum.php?thread_id=2398706&forum_id=7581, but openwebmail still report errors after several run. I found the problem is all variables are treated as tainted, even the variable is just untailed by a regex. This could a problem for all large CGIs running with speedycgi on Redhat9. An ugly solution for this is to replace the /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/libperl.so with the one in redhat8. And I guess this problem could be due to the use of new gcc 3.2.2. 2. speedycgi + thttpd doesn't work for cgi returning long page? If th CGI returns very long webpage, only part of the result (mostly first 16k or 32k) is returned. This is due to a minor bug in thttpd that didn't handle EAGAIN error well. The bug can be fixed by applying the following patch --------------------------------------------- --- libhttpd.c.orig Tue Jun 10 10:20:22 2003 +++ libhttpd.c Tue Jun 10 10:21:42 2003 @@ -4169,7 +4169,8 @@ } else if ( r == 0 ) break; - nread += r; + else + nread += r; } return nread; @@ -4195,7 +4196,8 @@ return r; else if ( r == 0 ) break; - nwritten += r; + else + nwritten += r; } return nwritten; -------------------------------------------- tung -- Distributed System Laboratory (http://dslab.ee.ncku.edu.tw) Department of Electrical Engineering National Cheng Kung University, Tainan, Taiwan, R.O.C. |