mldonkey-commits
[Top][All Lists]
Advanced

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

[Mldonkey-commits] mldonkey distrib/ChangeLog src/utils/net/udpSoc...


From: mldonkey-commits
Subject: [Mldonkey-commits] mldonkey distrib/ChangeLog src/utils/net/udpSoc...
Date: Sun, 11 Apr 2010 10:42:06 +0000

CVSROOT:        /sources/mldonkey
Module name:    mldonkey
Changes by:     spiralvoice <spiralvoice>       10/04/11 10:42:06

Modified files:
        distrib        : ChangeLog 
        src/utils/net  : udpSocket.ml 

Log message:
        patch #7163

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/mldonkey/distrib/ChangeLog?cvsroot=mldonkey&r1=1.1423&r2=1.1424
http://cvs.savannah.gnu.org/viewcvs/mldonkey/src/utils/net/udpSocket.ml?cvsroot=mldonkey&r1=1.22&r2=1.23

Patches:
Index: distrib/ChangeLog
===================================================================
RCS file: /sources/mldonkey/mldonkey/distrib/ChangeLog,v
retrieving revision 1.1423
retrieving revision 1.1424
diff -u -b -r1.1423 -r1.1424
--- distrib/ChangeLog   10 Apr 2010 17:06:04 -0000      1.1423
+++ distrib/ChangeLog   11 Apr 2010 10:42:06 -0000      1.1424
@@ -14,6 +14,9 @@
 ChangeLog
 =========
 
+2010/04/11
+7163: Fix not sending UDP packets when max_hard_upload_rate = 0 (ygrek)
+
 2010/04/10
 7162: filter longhelp output (ygrek)
 - longhelp (or ??) with parameters will output only those commands that

Index: src/utils/net/udpSocket.ml
===================================================================
RCS file: /sources/mldonkey/mldonkey/src/utils/net/udpSocket.ml,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -b -r1.22 -r1.23
--- src/utils/net/udpSocket.ml  21 Nov 2006 22:34:34 -0000      1.22
+++ src/utils/net/udpSocket.ml  11 Apr 2010 10:42:06 -0000      1.23
@@ -461,7 +461,7 @@
 (*    udp_bc.remaining_bytes <- udp_bc.remaining_bytes + n; *)
     if total <> 0 && udp_bc.remaining_bytes > total then
       udp_bc.remaining_bytes <- total;
-    udp_bc.allow_io := udp_bc.remaining_bytes > 0;
+    udp_bc.allow_io := total = 0 || udp_bc.remaining_bytes > 0;
     if !verbose_bandwidth > 0 then
       lprintf_nl "udp_bc count:%d total_bytes:%d remaining_bytes:%d" 
       udp_bc.count udp_bc.total_bytes udp_bc.remaining_bytes;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]