Re: fnord hangs when serving images via https

[email protected] Tue, 8 Mar 2005 20:47:38 +0100
Newsgroups gmane.comp.web.fnord
Message-ID <[email protected]>
Hi,

On Tue, Mar 08, 2005 at 07:22:56PM +0200, Dale Gallagher wrote:
> 
> When going to URL https://foo.localnet/img/foo.png, fnord hangs, whereas 
> without ssl it serves the image.  What could be causing this?  Other 
> files, including cgi's are served without problems.
> 
> .. using a tcpserver with the "a record", errno and nobase patches, 
> together with André Oppermann's ssl/tls patch applied. I'm also using 
> the same tcpserver for non-ssl connections. I've been using the same 
> patched tcpserver for over a year on two hosts with a qmail pop3 service 
> over ssl, so my guess is that tcpserver is probably not the culprit.
> 
> Any idea what's amiss?

I couple of weeks ago I reported a similar problem with fnord and ucspi-ssl.
(I don't know if that got through - I have the feeling that felix drops mail
 from dialup IPs without warning... :-/)

I solved it by compiling fnord without sendfile-support, e. g. by applying
the following patch:

--- fnord-1.9/httpd.c.orig      2005-02-15 20:18:47.307648855 +0100
+++ fnord-1.9/httpd.c   2005-02-15 20:19:02.429020152 +0100
@@ -97,7 +97,7 @@
  * localhost with sendfile and keep-alive.  However, sendfile does not
  * work with large files and may be considered cheating ;-)
  * Also, sendfile is a blocking operation.  Thus, no timeout handling. */
-#define USE_SENDFILE
+/*#define USE_SENDFILE*/

 #ifndef __linux__
 #undef USE_SENDFILE

Hope this helps,
			Peter
-- 
Peter Conrad      | "Those who would sacrifice essential freedoms for
Friedensallee 152 |  temporary safety deserve neither."
63263 Neu-Isenburg|                                  - Benjamin Franklin
Germany

  email: [email protected] / WWW: http://www.unix-ag.uni-kl.de/~conrad