2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

Fixed busy loop when error/hup epoll events occur.
	* src/AbstractCommand.cc
	* src/PeerAbstractCommand.cc
pull/1/head
Tatsuhiro Tsujikawa 2008-06-04 15:27:58 +00:00
parent fc0725002d
commit bc5319081b
3 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed busy loop when error/hup epoll events occur.
* src/AbstractCommand.cc
* src/PeerAbstractCommand.cc
2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added --bt-request-peer-speed-limit option, which was a constant

View File

@ -105,6 +105,7 @@ bool AbstractCommand::execute() {
}
if((checkSocketIsReadable && _readEvent) ||
(checkSocketIsWritable && _writeEvent) ||
_errorEvent ||
#ifdef ENABLE_ASYNC_DNS
(nameResolverCheck && nameResolveFinished()) ||
#endif // ENABLE_ASYNC_DNS

View File

@ -75,7 +75,8 @@ bool PeerAbstractCommand::execute() {
e->getUploadSpeed() <= uploadLimit*1024) ||
*/
(checkSocketIsReadable && _readEvent) ||
(checkSocketIsWritable && _writeEvent)) {
(checkSocketIsWritable && _writeEvent) ||
_errorEvent) {
checkPoint.reset();
}
if(checkPoint.elapsed(timeout)) {