mirror of https://github.com/aria2/aria2
2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed busy loop when error/hup epoll events occur. * src/AbstractCommand.cc * src/PeerAbstractCommand.ccpull/1/head
parent
fc0725002d
commit
bc5319081b
|
@ -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
|
||||
|
|
|
@ -105,6 +105,7 @@ bool AbstractCommand::execute() {
|
|||
}
|
||||
if((checkSocketIsReadable && _readEvent) ||
|
||||
(checkSocketIsWritable && _writeEvent) ||
|
||||
_errorEvent ||
|
||||
#ifdef ENABLE_ASYNC_DNS
|
||||
(nameResolverCheck && nameResolveFinished()) ||
|
||||
#endif // ENABLE_ASYNC_DNS
|
||||
|
|
|
@ -75,7 +75,8 @@ bool PeerAbstractCommand::execute() {
|
|||
e->getUploadSpeed() <= uploadLimit*1024) ||
|
||||
*/
|
||||
(checkSocketIsReadable && _readEvent) ||
|
||||
(checkSocketIsWritable && _writeEvent)) {
|
||||
(checkSocketIsWritable && _writeEvent) ||
|
||||
_errorEvent) {
|
||||
checkPoint.reset();
|
||||
}
|
||||
if(checkPoint.elapsed(timeout)) {
|
||||
|
|
Loading…
Reference in New Issue