From c9e50559b695afba226787ce4f1773bdb29fa997 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 31 Jan 2010 21:44:22 +0000 Subject: [PATCH] loop back cancel messages for web servers --- include/libtorrent/http_seed_connection.hpp | 3 +-- include/libtorrent/web_peer_connection.hpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/libtorrent/http_seed_connection.hpp b/include/libtorrent/http_seed_connection.hpp index 2c6f0f741..d9dce14cd 100644 --- a/include/libtorrent/http_seed_connection.hpp +++ b/include/libtorrent/http_seed_connection.hpp @@ -113,8 +113,7 @@ namespace libtorrent void write_interested() {} void write_not_interested() {} void write_request(peer_request const& r); - void write_cancel(peer_request const& r) - { incoming_reject_request(r); } + void write_cancel(peer_request const& r) {} void write_have(int index) {} void write_piece(peer_request const& r, disk_buffer_holder& buffer) { TORRENT_ASSERT(false); } void write_keepalive() {} diff --git a/include/libtorrent/web_peer_connection.hpp b/include/libtorrent/web_peer_connection.hpp index 3fc9a5a0a..7a59d1fa6 100644 --- a/include/libtorrent/web_peer_connection.hpp +++ b/include/libtorrent/web_peer_connection.hpp @@ -111,8 +111,7 @@ namespace libtorrent void write_interested() {} void write_not_interested() {} void write_request(peer_request const& r); - void write_cancel(peer_request const& r) - { incoming_reject_request(r); } + void write_cancel(peer_request const& r) {} void write_have(int index) {} void write_piece(peer_request const& r, disk_buffer_holder& buffer) { TORRENT_ASSERT(false); } void write_keepalive() {}