Skip to content

Instantly share code, notes, and snippets.

logging of 100 torrents for 100 hours:
port not equal to implied port differs count = 599572.
Total DHT announce count = 1981358.
Both port count = 1559547.
TR_PEER_FROM_DHT port 1 count = 52869.
example snippet of log-stdout:
--- J:/T1/download-limits-upload-bandwidth-clamp-forum-post-071816/bandwidth.c.org.c Mon Feb 11 07:05:56 2013
+++ J:/T1/download-limits-upload-bandwidth-clamp-forum-post-071816/bandwidth.c Sun Jun 28 01:08:42 2015
@@ -174,8 +174,14 @@
/* set the available bandwidth */
if( b->band[dir].isLimited )
{
- const unsigned int nextPulseSpeed = b->band[dir].desiredSpeed_Bps;
- b->band[dir].bytesLeft = ( nextPulseSpeed * period_msec ) / 1000u;
+ if( ( ( tr_bandwidthGetDesiredSpeed_Bps( b, dir ) < (double)1 )
+ && ( tr_bandwidthGetDesiredSpeed_Bps( b, dir ) > (double)-1 ) ) )
@cfpp2p
cfpp2p / Makefile
Created January 18, 2016 21:54
transmissiondcfp Makefile for Entware-ng
#
# Copyright (C) 2009-2013 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=transmissiondcfp
@cfpp2p
cfpp2p / RESENDS_MAX_COUNT_v2.diff
Created December 4, 2012 00:10
pactch to fix selective_ack
--- J:/!/svn-uTP/utp.cpp.org Fri Nov 30 20:12:44 2012
+++ J:/!/svn-uTP/utp.cpp Mon Dec 3 22:09:56 2012
@@ -60,6 +60,11 @@
// that hasn't been acked yet
#define DUPLICATE_ACKS_BEFORE_RESEND 3
+// maximum number of resends SRS 11-30-2012
+// per BEP29 calculations limit is 2040 if so desired
+// RESENDS_MAX_COUNT never allowed to be 0
+#define RESENDS_MAX_COUNT 32