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>
|
||||
|
||||
Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
#include "a2functional.h"
|
||||
#include "util.h"
|
||||
#include "bencode.h"
|
||||
#include "DlAbortEx.h"
|
||||
|
||||
namespace aria2 {
|
||||
|
||||
|
@ -59,8 +60,7 @@ std::string UTMetadataRejectExtensionMessage::toString() const
|
|||
|
||||
void UTMetadataRejectExtensionMessage::doReceivedAction()
|
||||
{
|
||||
// TODO Remove outstanding metadata request from tracker.
|
||||
// OR drop connection.
|
||||
throw DL_ABORT_EX("Drop connection because peer didn't offer metadata.");
|
||||
}
|
||||
|
||||
} // namespace aria2
|
||||
|
|
Loading…
Reference in New Issue