From owner-freebsd-questions Tue Jul 27 14:41:47 1999 Delivered-To: freebsd-questions@freebsd.org Received: from sb.net (sb.net [209.241.234.2]) by hub.freebsd.org (Postfix) with ESMTP id 2AF31153B3 for ; Tue, 27 Jul 1999 14:41:42 -0700 (PDT) (envelope-from sal@warp9tech.com) Received: from IO (ipf1.sb.net [209.241.234.4]) by sb.net (8.8.8/8.8.8) with SMTP id OAA28988 for ; Tue, 27 Jul 1999 14:41:29 -0700 (PDT) From: "Sean Leach" To: Subject: Socket problem Date: Tue, 27 Jul 1999 14:41:30 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2918.2701 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, For starters we are on FreeBSD 3.2-release. We have a perl persistent server that talks to a CGI through a Unix file socket. The cgi gets info, sends it to the perl server through the socket and writes the result it gets back to File descriptor 1 (it's based on minivend if anyone knows what that is). Sometimes, the apache server gets an Internal Server error when getting the results back. I log the HTML code the perl server gets back, and it is valid HTML code with the correct content-type header. This never happened when we were running on Linux kernel 2.0, but all of a sudden it is happening now. We bumped the maxusers kernel flag to 256. I assume this does an implicit increase of CHILD_MAX, but not SOCONNMAX. The cgi completes entirely, but we get "Premature end of script header" errors in the apache logs. On the minivend site, it says to bump up the CHILD_MAX on freebsd and BSDI. Will this help, if we have maxusers at 256, shouldn't this increase this? Is there any known problems when multiple servers try to attach to the same socket? Any help would be greatly appreciated. I know this message is somewhat vague, but I don't have a lot to go on. Thanks a lot! Sean =================================== Sean Leach sal@sb.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message