FileDownloadLog.NEED_LOG=true and review the Logcat output from main process and :filedownloader process ( pay attention to Warn and Error level logcat)FileDownloadLog.NEED_LOG=true?:filedownloader process logcat P.S. If you don't know how to get
:filedownloaderprocess, it's recommended to usingpidcatto just filter all your application logcat, or defineprocess.non-separate=trueon filedownloader.properties
请在Issue前认真的跟进上面提到的建议,这样将可以极大的加快你遇到问题的处理。
Connection failed with request[{Range=[bytes=-474921016-399245915]}] response[{null=[HTTP/1.1 416 Requested Range Not Satisfiable], Connection=[close], Content-Length=[213], Content-Range=[bytes */5867766516], Content-Type=[text/html], Date=[Wed, 11 Oct 2017 09:20:44 GMT], Server=[nginx/1.9.12], X-Android-Received-Millis=[1507713645213], X-Android-Response-Source=[NETWORK 416], X-Android-Sent-Millis=[1507713645191]}] http-state[416] on task[-1632494122-3], which is changed after verify connection, so please try again
使用的是哪个版本?
1.6.6
@hongbiangoal 确定清楚版本,这个问题在 #669 中修复过,我刚刚重新检查了代码,在1.6.2之后就不可能再遇到该问题。
有任何反馈该Issue将被重新打开。
DefaultDatabaseImpl类的findConnectionModel方法中
model.setStartOffset(c.**getInt**(c.getColumnIndex(ConnectionModel.START_OFFSET)));
model.setCurrentOffset(c.**getInt**(c.getColumnIndex(ConnectionModel.CURRENT_OFFSET)));
model.setEndOffset(c.**getInt**(c.getColumnIndex(ConnectionModel.END_OFFSET)));
我改成getLong就ok了
@hongbiangoal 抱歉,确实存在该问题,我这边会提交一个新版本修复这个问题。
也十分欢迎直接提交PR的~
Most helpful comment
DefaultDatabaseImpl类的findConnectionModel方法中
我改成getLong就ok了