Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK)) by mollari.NetBSD.org (Postfix) with ESMTPS id 297007A2C1 for ; Thu, 20 Oct 2016 21:21:27 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 8ED3585E77; Thu, 20 Oct 2016 21:21:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 1F29C85E3C for ; Thu, 20 Oct 2016 21:21:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id Sk3kucnM07xo for ; Thu, 20 Oct 2016 21:21:25 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 7F48F84CE9 for ; Thu, 20 Oct 2016 21:21:25 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 7A217FBD2; Thu, 20 Oct 2016 21:21:25 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_147699848518570" MIME-Version: 1.0 Date: Thu, 20 Oct 2016 21:21:25 +0000 From: "Joerg Sonnenberger" Subject: CVS commit: pkgsrc/net/libfetch/files To: pkgsrc-changes@NetBSD.org Reply-To: joerg@netbsd.org X-Mailer: log_accum Message-Id: <20161020212125.7A217FBD2@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk This is a multi-part message in MIME format. --_----------=_147699848518570 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: joerg Date: Thu Oct 20 21:21:25 UTC 2016 Modified Files: pkgsrc/net/libfetch/files: http.c Log Message: Only set the cached flag when the connection is actually cached. New connections should not have it set. This changes the behavior of timeouts on the first read. To generate a diff of this commit: cvs rdiff -u -r1.38 -r1.39 pkgsrc/net/libfetch/files/http.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_147699848518570 Content-Disposition: inline Content-Length: 675 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=utf-8 Modified files: Index: pkgsrc/net/libfetch/files/http.c diff -u pkgsrc/net/libfetch/files/http.c:1.38 pkgsrc/net/libfetch/files/http.c:1.39 --- pkgsrc/net/libfetch/files/http.c:1.38 Mon Feb 8 13:27:42 2016 +++ pkgsrc/net/libfetch/files/http.c Thu Oct 20 21:21:25 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: http.c,v 1.38 2016/02/08 13:27:42 jperkin Exp $ */ +/* $NetBSD: http.c,v 1.39 2016/10/20 21:21:25 joerg Exp $ */ /*- * Copyright (c) 2000-2004 Dag-Erling Coïdan Smørgrav * Copyright (c) 2003 Thomas Klausner @@ -719,7 +719,7 @@ http_connect(struct url *URL, struct url int val; #endif - *cached = 1; + *cached = 0; #ifdef INET6 af = AF_UNSPEC; --_----------=_147699848518570--