mirror of https://github.com/aria2/aria2
2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added debug log for socket event. * src/AbstractCommand.cc * src/PeerAbstractCommand.ccpull/1/head
parent
2522175ff1
commit
dc6ef187b6
|
@ -1,3 +1,9 @@
|
||||||
|
2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||||
|
|
||||||
|
Added debug log for socket event.
|
||||||
|
* src/AbstractCommand.cc
|
||||||
|
* src/PeerAbstractCommand.cc
|
||||||
|
|
||||||
2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||||
|
|
||||||
Log microseconds.
|
Log microseconds.
|
||||||
|
|
|
@ -87,6 +87,8 @@ AbstractCommand::~AbstractCommand() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AbstractCommand::execute() {
|
bool AbstractCommand::execute() {
|
||||||
|
logger->debug("CUID#%d - socket: read:%d, write:%d, hup:%d, err:%d",
|
||||||
|
cuid, _readEvent, _writeEvent, _hupEvent, _errorEvent);
|
||||||
try {
|
try {
|
||||||
if(_requestGroup->downloadFinished() || _requestGroup->isHaltRequested()) {
|
if(_requestGroup->downloadFinished() || _requestGroup->isHaltRequested()) {
|
||||||
//logger->debug("CUID#%d - finished.", cuid);
|
//logger->debug("CUID#%d - finished.", cuid);
|
||||||
|
|
|
@ -74,6 +74,9 @@ PeerAbstractCommand::~PeerAbstractCommand()
|
||||||
|
|
||||||
bool PeerAbstractCommand::execute()
|
bool PeerAbstractCommand::execute()
|
||||||
{
|
{
|
||||||
|
logger->debug("CUID#%d -"
|
||||||
|
" socket: read:%d, write:%d, hup:%d, err:%d, noCheck:%d",
|
||||||
|
cuid, _readEvent, _writeEvent, _hupEvent, _errorEvent, noCheck);
|
||||||
if(exitBeforeExecute()) {
|
if(exitBeforeExecute()) {
|
||||||
onAbort();
|
onAbort();
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue