From 0680ac5e5ed2426ed01d735bca5fbb57d6c925bb Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 14 Sep 2008 13:43:34 +0000 Subject: 2008-09-14 Tatsuhiro Tsujikawa If error event is received in epoll, then abort download immediately. * src/AbstractCommand.cc * src/Command.cc * src/Command.h * src/DownloadEngine.cc * src/PeerAbstractCommand.cc --- src/Command.cc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/Command.cc') diff --git a/src/Command.cc b/src/Command.cc index 116e7d5b..acc46638 100644 --- a/src/Command.cc +++ b/src/Command.cc @@ -46,7 +46,8 @@ Command::Command(int32_t cuid):uuid(uuidGen++), logger(LogFactory::getInstance()), _readEvent(false), _writeEvent(false), - _errorEvent(false) {} + _errorEvent(false), + _hupEvent(false) {} void Command::transitStatus() { @@ -73,16 +74,22 @@ void Command::writeEventReceived() _writeEvent = true; } -void Command::errorEventRecieved() +void Command::errorEventReceived() { _errorEvent = true; } +void Command::hupEventReceived() +{ + _hupEvent = true; +} + void Command::clearIOEvents() { _readEvent = false; _writeEvent = false; _errorEvent = false; + _hupEvent = false; } } // namespace aria2 -- cgit