reset marks before reading next key
| 261 | |
| 262 | // reset marks before reading next key |
| 263 | void S3KeyReader::reset() { |
| 264 | this->sharedError = false; |
| 265 | this->curReadingChunk = 0; |
| 266 | this->transferredKeyLen = 0; |
| 267 | |
| 268 | this->offsetMgr.reset(); |
| 269 | |
| 270 | this->chunkBuffers.clear(); |
| 271 | this->threads.clear(); |
| 272 | |
| 273 | this->hasEol = false; |
| 274 | this->eolAppended = false; |
| 275 | } |
| 276 | |
| 277 | void S3KeyReader::close() { |
| 278 | // to interupt downlading thread, we must: (check ChunkBuffer::fill()) |