Rebalance refcounts with keepalive.
authorjbj <devnull@localhost>
Mon, 8 Nov 2004 01:54:12 +0000 (01:54 +0000)
committerjbj <devnull@localhost>
Mon, 8 Nov 2004 01:54:12 +0000 (01:54 +0000)
CVS patchset: 7553
CVS date: 2004/11/08 01:54:12

rpmio/rpmio.c
rpmio/tget.c

index 950de87..0704c4c 100644 (file)
@@ -1976,10 +1976,9 @@ fprintf(stderr, "-> \r\n");
            if (fd->persist && u->httpVersion &&
                (fd == u->ctrl || fd == u->data) && fd->bytesRemain == 0) {
                fd->contentLength = fd->bytesRemain = -1;
+               if (!strcmp(u->scheme, "http"))
+                   return 0;
                /* HACK: flimsy wiring for davClose */
-               if (!strcmp(u->scheme, "https"))
-                   return davClose(fd);
-               return 0;
            } else {
                fd->contentLength = fd->bytesRemain = -1;
            }
index 7bf88c6..2eb3d6d 100644 (file)
@@ -75,9 +75,12 @@ _dav_debug = -1;
     readFile(dirpath);
     readFile(ftppath);
     readFile(httppath);
+    readFile(httppath);
+    readFile(httppath);
 #endif
     readFile(httpspath);
     readFile(httpspath);
+    readFile(httpspath);
 
 /*@i@*/ urlFreeCache();