From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RQP5H-0006yp-N5 for garchives@archives.gentoo.org; Tue, 15 Nov 2011 19:54:20 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DF00121C11F; Tue, 15 Nov 2011 19:54:00 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id B6BAB21C0F8 for ; Tue, 15 Nov 2011 19:52:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 3E7121B4029 for ; Tue, 15 Nov 2011 19:52:22 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Score: -3.458 X-Spam-Level: X-Spam-Status: No, score=-3.458 required=5.5 tests=[AWL=0.082, BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_NUMERIC_HELO=1.164, RP_MATCHES_RCVD=-0.504] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id r7GUK756Eove for ; Tue, 15 Nov 2011 19:52:15 +0000 (UTC) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by smtp.gentoo.org (Postfix) with ESMTP id 520E41B4041 for ; Tue, 15 Nov 2011 19:52:12 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RQP3C-0001kU-NN for gentoo-user@gentoo.org; Tue, 15 Nov 2011 20:52:10 +0100 Received: from 109.176.132.93 ([109.176.132.93]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 15 Nov 2011 20:52:10 +0100 Received: from slong by 109.176.132.93 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 15 Nov 2011 20:52:10 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Steven J Long Subject: [gentoo-user] Re: The SIMPLEST web server to config (this time - just for serving video files) ? Followup-To: gmane.linux.gentoo.user Date: Tue, 15 Nov 2011 19:57:50 +0000 Organization: Friendly-Coders Message-ID: References: <201111132258.06753.michaelkintzios@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 109.176.132.93 X-Archives-Salt: 7dd98c98-2dda-478f-a753-4f08d61508ee X-Archives-Hash: f62f122df074fd7986bbfe1953032da0 Mick wrote: >> File "/usr/lib64/python2.7/SocketServer.py", line 694, in finish >> self.wfile.flush() >> File "/usr/lib64/python2.7/socket.py", line 303, in flush >> self._sock.sendall(view[write_offset:write_offset+buffer_size]) >> error: [Errno 32] Broken pipe >> ---------------------------------------- >> > I'm pretty much clueless in python so can't interpret the messages - > hopefully someone more knowledgeable will chime in. > 'Broken pipe' just means the remote closed the connection. It's a pretty standard error in this context, which the server should handle. A process normally gets a SIGPIPE which will by default terminate it, which is what you want if you have a pipeline'd command whose output is no longer required. An example would be checking there is at least one matching file somewhere in a directory hierarchy with: read -d '' f < <(find /base/dir -type f -name 'foo*' -print0) [[ $f ]] || echo 'no foo* files' -- find will terminate after the first filename has been read. In this case, signal(SIGPIPE, SIG_IGN) or the equivalent has been called, which gives EPIPE instead; a process ignoring the signal is supposed to deal with the error. So I'd say it's a bug. -- #friendly-coders -- We're friendly, but we're not /that/ friendly ;-)