mirror of https://github.com/aria2/aria2
2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Drop connection if ut_metadata reject message is received. * src/UTMetadataRejectExtensionMessage.ccpull/1/head
parent
9d2199acbb
commit
b563621dd1
|
@ -1,3 +1,8 @@
|
||||||
|
2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
|
Drop connection if ut_metadata reject message is received.
|
||||||
|
* src/UTMetadataRejectExtensionMessage.cc
|
||||||
|
|
||||||
2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
|
Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
|
||||||
|
|
|
@ -37,6 +37,7 @@
|
||||||
#include "a2functional.h"
|
#include "a2functional.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "bencode.h"
|
#include "bencode.h"
|
||||||
|
#include "DlAbortEx.h"
|
||||||
|
|
||||||
namespace aria2 {
|
namespace aria2 {
|
||||||
|
|
||||||
|
@ -59,8 +60,7 @@ std::string UTMetadataRejectExtensionMessage::toString() const
|
||||||
|
|
||||||
void UTMetadataRejectExtensionMessage::doReceivedAction()
|
void UTMetadataRejectExtensionMessage::doReceivedAction()
|
||||||
{
|
{
|
||||||
// TODO Remove outstanding metadata request from tracker.
|
throw DL_ABORT_EX("Drop connection because peer didn't offer metadata.");
|
||||||
// OR drop connection.
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace aria2
|
} // namespace aria2
|
||||||
|
|
Loading…
Reference in New Issue