From owner-freebsd-apache@FreeBSD.ORG Fri Mar 15 16:20:06 2013 Return-Path: Delivered-To: apache@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 499CAFCE for ; Fri, 15 Mar 2013 16:20:06 +0000 (UTC) (envelope-from lilian@devclic.fr) Received: from smtp01.mgmt.devclic.net (smtp01.mgmt.devclic.net [91.198.44.61]) by mx1.freebsd.org (Postfix) with ESMTP id C2BBAAFB for ; Fri, 15 Mar 2013 16:20:05 +0000 (UTC) Received: from mx-1.devclic.net (mx-1.devclic.net [91.198.44.12]) by smtp01.mgmt.devclic.net (Postfix) with ESMTP id 61597C067 for ; Fri, 15 Mar 2013 18:54:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=devclic.fr; s=dkim; t=1363370065; bh=M9YnNUs8Dy4FsZ94zq0LSvysLAlCeiq80bDxlGgtAHI=; h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type; b=YtC0HKRMFyJ2E7KBwBYKNv1sopikA7gclwnxDxhYdI+SvSCJncVsQ+qaFeZHp/rnY juS4TI0CazBcpCDa0IOy8ExeioaINgOZbLXBshtEZ6nKaPWs2UNPSTKTT3Mp7WkF28 MIHZ3EuvSdYA/Neg5FVrbnF0fYepPCf6L/V343OQ= Received: from localhost (localhost [127.0.0.1]) by mx-1.devclic.net (Postfix) with ESMTP id 7881527C7CE for ; Fri, 15 Mar 2013 17:14:25 +0100 (CET) X-DSPAM-Result: Whitelisted X-DSPAM-Confidence: 0.6151 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 1,514348df70891804284693 X-DSPAM-Factors: 27, X-Spam-Flag: NO X-Spam-Score: -5.764 X-Spam-Level: X-Spam-Status: No, score=-5.764 required=4 tests=[ALL_TRUSTED=-1.8, AWL=-1.966, BAYES_50=0.001, DSPAM_WHITELIST=-2, HTML_MESSAGE=0.001] Received: from mx-1.devclic.net ([127.0.0.1]) by localhost (devclic-node1.devclic.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ueUvx+qfHUtY for ; Fri, 15 Mar 2013 17:14:23 +0100 (CET) Received: from [0.0.0.0] (unknown [91.198.44.22]) by mx-1.devclic.net (Postfix) with ESMTPS id 8127027C75F for ; Fri, 15 Mar 2013 17:14:23 +0100 (CET) Message-ID: <514348DE.9000701@devclic.fr> Date: Fri, 15 Mar 2013 17:14:22 +0100 From: Lilian - Devclic User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: apache@FreeBSD.org Subject: Upgrade of mod_fastcgi Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Mar 2013 16:20:06 -0000 Hello, We had an issue with mod_fasctcgi. Some requests failed with no reason and these errors appears in the apache error log file : [Fri Mar 15 15:38:57 2013] [error] [client 91.198.44.22] (4)Interrupted system call: FastCGI: comm with server "/usr/local/sbin/php-fpm" aborted: select() failed, referer: https://sql.devclic.fr/db_structure.php?token=b9b99b544a46d355583070251708d948&db=devclic_si [Fri Mar 15 15:38:57 2013] [error] [client 91.198.44.22] FastCGI: incomplete headers (0 bytes) received from server "/usr/local/sbin/php-fpm", referer: https://sql.devclic.fr/db_structure.php?token=b9b99b544a46d355583070251708d948&db=devclic_si We had the same issue on Ubuntu and Debian system and we update the version to the latest 2.4.7. So, can you update the port to this version ? Or can you put this fix in the source code : http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504132 > Index: libapache-mod-fastcgi-2.4.2/mod_fastcgi.c > =================================================================== > --- libapache-mod-fastcgi-2.4.2.orig/mod_fastcgi.c 2008-11-02 16:42:49.000000000 +0000 > +++ libapache-mod-fastcgi-2.4.2/mod_fastcgi.c 2008-11-02 16:50:46.000000000 +0000 > @@ -2178,12 +2178,15 @@ > } > > /* wait on the socket */ > - select_status = ap_select(nfds, &read_set, &write_set, NULL, &timeout); > + /* Interrupted system calls do happen now and then, so retry on EINTR */ > + do { > + select_status = ap_select(nfds, &read_set, &write_set, NULL, &timeout); > + } while (select_status < 0 && errno == EINTR); > > if (select_status < 0) > { > ap_log_rerror(FCGI_LOG_ERR_ERRNO, r, "FastCGI: comm with server " > - "\"%s\" aborted: select() failed", fr->fs_path); > + "\"%s\" aborted: select() failed: \"%s\"", fr->fs_path, strerror(errno)); > state = STATE_ERROR; > break; > } > @@ -2246,11 +2249,19 @@ > } > > rv = fcgi_buf_socket_recv(fr->serverInputBuffer, fr->fd); > + /* > + * select(2) states: Under Linux, select() may report a socket > + * file descriptor as "ready for reading", while nevertheless a > + * subsequent read blocks. > + * Act as if the FD was not set if socket_recv returns EAGAIN. > + */ > + if (rv < 0 && errno == EAGAIN) > + break; > > if (rv < 0) > { > ap_log_rerror(FCGI_LOG_ERR, r, "FastCGI: comm with server " > - "\"%s\" aborted: read failed", fr->fs_path); > + "\"%s\" aborted: read failed: \"%s\"", fr->fs_path, strerror(errno)); > state = STATE_ERROR; > break; > } We test it on a production server and at this moment no more problem. Thanks a lot. Best Regards. -- Lilian RIGARD - Devclic Gérant - CEO & CTO Téléphone (Standard) / Phone : +33 811 69 64 45 (Prix appel local) Portable / Cell Phone : +33 6 29 59 21 34 E-mail : lilian@devclic.fr Web : http://www.devclic.fr Visitez nos sites internet : Forum-Webmaster - MeilleursPrix - NDFR - E-commercant - Blog du High-Tech