pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/libfetch/files Only set the cached flag when the c...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f3db93f8959e
branches:  trunk
changeset: 354155:f3db93f8959e
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Oct 20 21:21:25 2016 +0000

description:
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.

diffstat:

 net/libfetch/files/http.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r d9ddeaf2d4e8 -r f3db93f8959e net/libfetch/files/http.c
--- a/net/libfetch/files/http.c Thu Oct 20 18:09:40 2016 +0000
+++ b/net/libfetch/files/http.c Thu Oct 20 21:21:25 2016 +0000
@@ -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 <wiz%NetBSD.org@localhost>
@@ -719,7 +719,7 @@
        int val;
 #endif
 
-       *cached = 1;
+       *cached = 0;
 
 #ifdef INET6
        af = AF_UNSPEC;



Home | Main Index | Thread Index | Old Index