diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-09-11 00:54:33 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-09-11 00:54:33 +0900 |
| commit | fee9b95db376752dc91c61334abbea0add6fcd5b (patch) | |
| tree | 9fba5c63cda7bd33f788662122065bdae1eab2b4 /src | |
| parent | 79c59dcbf49cc237354497f1f36d03d68ba5646f (diff) | |
Don't check readability of BitTorrent TCP socket.
Don't check readability of BitTorrent TCP socket to avoid flooding.
Diffstat (limited to 'src')
| -rw-r--r-- | src/PeerListenCommand.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/PeerListenCommand.cc b/src/PeerListenCommand.cc index a0f95bda..d2600f16 100644 --- a/src/PeerListenCommand.cc +++ b/src/PeerListenCommand.cc @@ -61,12 +61,7 @@ PeerListenCommand::PeerListenCommand family_(family) {} -PeerListenCommand::~PeerListenCommand() -{ - if(socket_) { - e_->deleteSocketForReadCheck(socket_, this); - } -} +PeerListenCommand::~PeerListenCommand() {} bool PeerListenCommand::bindPort(uint16_t& port, IntSequence& seq) { @@ -86,7 +81,6 @@ bool PeerListenCommand::bindPort(uint16_t& port, IntSequence& seq) socket_->bind(A2STR::NIL, port, family_); socket_->beginListen(); socket_->setNonBlockingMode(); - e_->addSocketForReadCheck(socket_, this); A2_LOG_NOTICE(fmt("IPv%d BitTorrent: listening to port %u", ipv, port)); return true; } catch(RecoverableException& ex) { |
