mirror of https://github.com/aria2/aria2
2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed the bug that causes segmentaiton fault when aria2 sees '404 not found' in the N times(N is where --max-file-not-found=N, N>0) in a row without single '200 OK' response. * src/RequestGroup.cc.pull/1/head
parent
b39ede01a7
commit
69850ada49
|
@ -1,3 +1,10 @@
|
||||||
|
2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
|
Fixed the bug that causes segmentaiton fault when aria2 sees '404
|
||||||
|
not found' in the N times(N is where --max-file-not-found=N, N>0)
|
||||||
|
in a row without single '200 OK' response.
|
||||||
|
* src/RequestGroup.cc.
|
||||||
|
|
||||||
2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
Fixed compile error with i586-mingw32msvc-g++. Always Cut console
|
Fixed compile error with i586-mingw32msvc-g++. Always Cut console
|
||||||
|
|
|
@ -1026,7 +1026,8 @@ void RequestGroup::increaseAndValidateFileNotFoundCount()
|
||||||
++_fileNotFoundCount;
|
++_fileNotFoundCount;
|
||||||
const unsigned int maxCount = _option->getAsInt(PREF_MAX_FILE_NOT_FOUND);
|
const unsigned int maxCount = _option->getAsInt(PREF_MAX_FILE_NOT_FOUND);
|
||||||
if(maxCount > 0 && _fileNotFoundCount >= maxCount &&
|
if(maxCount > 0 && _fileNotFoundCount >= maxCount &&
|
||||||
_segmentMan->calculateSessionDownloadLength() == 0) {
|
(_segmentMan.isNull() ||
|
||||||
|
_segmentMan->calculateSessionDownloadLength() == 0)) {
|
||||||
throw DOWNLOAD_FAILURE_EXCEPTION2
|
throw DOWNLOAD_FAILURE_EXCEPTION2
|
||||||
(StringFormat("Reached max-file-not-found count=%u", maxCount).str(),
|
(StringFormat("Reached max-file-not-found count=%u", maxCount).str(),
|
||||||
downloadresultcode::MAX_FILE_NOT_FOUND);
|
downloadresultcode::MAX_FILE_NOT_FOUND);
|
||||||
|
|
Loading…
Reference in New Issue