[links-list] Strange problem

Mikulas Patocka mikulas at artax.karlin.mff.cuni.cz
Sun Feb 11 13:13:54 PST 2001


> I switched it off to see wether it would fix problems with another machine
> and links 0.95 on OS/2. Does not help ..
> 
> Can you try
>   http://www.noc.dfn.de/cgi-bin/dfn-noc/dfnnocf-trouble
> ?

This is actually bug in Links http requester. Apply this patch.

Mikulas

--- http.c_	Sun Feb 11 22:10:21 2001
+++ http.c	Sun Feb 11 22:10:37 2001
@@ -339,7 +339,7 @@
 		if (info->length >= 0 && info->length < l) l = info->length;
 		c->received += l;
 		if (add_fragment(c->cache, c->from, rb->data, l) == 1) c->tries = 0;
-		info->length -= l;
+		if (info->length >= 0) info->length -= l;
 		c->from += l;
 		kill_buffer_data(rb, l);
 		if (!info->length && !rb->close) {



_______________________________________________
links-list mailing list
links-list at appwatch.com
http://mailman.appwatch.com/listinfo/links-list



More information about the links-list mailing list