From owner-cvs-src@FreeBSD.ORG Thu Nov 17 11:01:33 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E9A116A41F; Thu, 17 Nov 2005 11:01:33 +0000 (GMT) (envelope-from cperciva@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27B2C43D45; Thu, 17 Nov 2005 11:01:33 +0000 (GMT) (envelope-from cperciva@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id jAHB1Wti075006; Thu, 17 Nov 2005 11:01:33 GMT (envelope-from cperciva@repoman.freebsd.org) Received: (from cperciva@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id jAHB1WaX075005; Thu, 17 Nov 2005 11:01:32 GMT (envelope-from cperciva) Message-Id: <200511171101.jAHB1WaX075005@repoman.freebsd.org> From: Colin Percival Date: Thu, 17 Nov 2005 11:01:32 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/usr.sbin/portsnap/phttpget phttpget.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Nov 2005 11:01:33 -0000 cperciva 2005-11-17 11:01:32 UTC FreeBSD src repository Modified files: usr.sbin/portsnap/phttpget phttpget.c Log: Correctly handle a TCP connection being shutdown by the server while we're reading response headers. (Handle it as a connection-killing error, rather than entering an infinite loop reading zero bytes.) Reported by: simon Discovered thanks to: A not-very-transparent transparent HTTP proxy. MFC after: 3 days Revision Changes Path 1.7 +2 -1 src/usr.sbin/portsnap/phttpget/phttpget.c