diff options
author | tron <tron> | 2006-03-03 15:30:52 +0000 |
---|---|---|
committer | tron <tron> | 2006-03-03 15:30:52 +0000 |
commit | f5e2c76713cebc8f5078d482491b71f871421947 (patch) | |
tree | 1241c5c75739330aa053e7d01a4915bd0ade6f69 /net/libtorrent/patches | |
parent | 4c9e787f4669557941c1af3f8da4b6e88067aa24 (diff) | |
download | pkgsrc-f5e2c76713cebc8f5078d482491b71f871421947.tar.gz |
Add a fix from Jari Petter Sundell which prevents stalled connections
when a "libtorrent" based BitTorrent client is uploading to another
BitTorrent client which uses pipelined Request messages (e.g. BitComet).
Diffstat (limited to 'net/libtorrent/patches')
-rw-r--r-- | net/libtorrent/patches/patch-aa | 22 | ||||
-rw-r--r-- | net/libtorrent/patches/patch-ab | 22 |
2 files changed, 44 insertions, 0 deletions
diff --git a/net/libtorrent/patches/patch-aa b/net/libtorrent/patches/patch-aa new file mode 100644 index 00000000000..9ef25b1575f --- /dev/null +++ b/net/libtorrent/patches/patch-aa @@ -0,0 +1,22 @@ +$NetBSD: patch-aa,v 1.3 2006/03/03 15:30:53 tron Exp $ + +--- src/protocol/peer_connection_leech.cc.orig 2006-02-09 16:05:05.000000000 +0000 ++++ src/protocol/peer_connection_leech.cc 2006-03-03 15:11:38.000000000 +0000 +@@ -204,7 +204,7 @@ + } + + case ProtocolBase::REQUEST: +- if (buf->remaining() < 13) ++ if (buf->remaining() < 12) + break; + + if (!m_up->choked()) { +@@ -260,7 +260,7 @@ + } + + case ProtocolBase::CANCEL: +- if (buf->remaining() < 13) ++ if (buf->remaining() < 12) + break; + + read_cancel_piece(m_down->read_request()); diff --git a/net/libtorrent/patches/patch-ab b/net/libtorrent/patches/patch-ab new file mode 100644 index 00000000000..a5158a1f2c0 --- /dev/null +++ b/net/libtorrent/patches/patch-ab @@ -0,0 +1,22 @@ +$NetBSD: patch-ab,v 1.4 2006/03/03 15:30:53 tron Exp $ + +--- src/protocol/peer_connection_seed.cc.orig 2006-02-09 16:05:05.000000000 +0000 ++++ src/protocol/peer_connection_seed.cc 2006-03-03 15:11:38.000000000 +0000 +@@ -168,7 +168,7 @@ + } + + case ProtocolBase::REQUEST: +- if (buf->remaining() < 13) ++ if (buf->remaining() < 12) + break; + + if (!m_up->choked()) { +@@ -185,7 +185,7 @@ + throw network_error("Received a piece but the connection is strictly for seeding."); + + case ProtocolBase::CANCEL: +- if (buf->remaining() < 13) ++ if (buf->remaining() < 12) + break; + + read_cancel_piece(m_down->read_request()); |