From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 28 15:36:15 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0FA5B106567E for ; Thu, 28 Aug 2008 15:36:15 +0000 (UTC) (envelope-from prvs=1126b68502=killing@multiplay.co.uk) Received: from mail1.multiplay.co.uk (core6.multiplay.co.uk [85.236.96.23]) by mx1.freebsd.org (Postfix) with ESMTP id 69CB78FC1F for ; Thu, 28 Aug 2008 15:36:13 +0000 (UTC) (envelope-from prvs=1126b68502=killing@multiplay.co.uk) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=multiplay.co.uk; s=Multiplay; t=1219937743; x=1220542543; q=dns/txt; h=Received: Message-ID:From:To:Cc:References:Subject:Date:MIME-Version: Content-Type:Content-Transfer-Encoding; bh=v8bRKuA7Flhssny+0P8LM 0T+LxtfRVwp4A0UjOD/klk=; b=WeJy1J7XUwOXJAK4qdhm7DHAHPF8x9cJeF3fH aujJcVez55EU3tshshRPSaw3G71DeEioGMjnjDQhRMzDVLraf8dGkbOWfaoP0ZMg xFumElc875VDpBlqgsGjPMj6A3x6fIs51PugggcLRShQnK0Wpx1dA5dCooIfZ01q vEYIXg= X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on mail1.multiplay.co.uk X-Spam-Level: X-Spam-Status: No, score=-14.7 required=6.0 tests=BAYES_00, FORGED_MUA_OUTLOOK, USER_IN_WHITELIST,USER_IN_WHITELIST_TO autolearn=ham version=3.1.8 Received: from r2d2 by mail1.multiplay.co.uk (MDaemon PRO v9.6.6) with ESMTP id md50006098837.msg; Thu, 28 Aug 2008 16:35:41 +0100 X-Authenticated-Sender: Killing@multiplay.co.uk X-MDRemoteIP: 85.236.106.102 X-Return-Path: prvs=1126b68502=killing@multiplay.co.uk X-Envelope-From: killing@multiplay.co.uk Message-ID: <8A808063A5604856845574C05FE96E0C@multiplay.co.uk> From: "Steven Hartland" To: "Jeremy Chadwick" References: <20080828131059.GA46853@icarus.home.lan> Date: Thu, 28 Aug 2008 16:35:35 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Spam-Processed: mail1.multiplay.co.uk, Thu, 28 Aug 2008 16:35:42 +0100 X-MDAV-Processed: mail1.multiplay.co.uk, Thu, 28 Aug 2008 16:35:43 +0100 Cc: freebsd-hackers@freebsd.org Subject: Re: lighttpd failing to accept new connections ( connection reset ) / possible kqueue bug X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2008 15:36:15 -0000 ----- Original Message ----- From: "Jeremy Chadwick" > > Can you change the polling method in lighttpd to use poll or select > instead of kqueue? This would help in determining if the problem is > with the daemon itself or the kevent system. Yep already scheduled that change for our London node tomorrow morning. ATM we are seeing this issue every 1 - 2 days so it may take a little while before I can answer that question. I've had a look through the source and I can't see any reason why kevent would suddenly stop notifying the app that new connections are present. Event registration appears to only be done once on app startup and similarly unregisters are only done on shutdown, so my current thinking is there may be an problem with kqueue itself. I don't suppose your aware of any way to query the status of this in the kernel or app given I have a node in this "hung" state? Regards Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk.