Hi,

I tried a sample to use  range request in an ActorPublisher to download a
large file. But only one range is downloaded. The publisher is stopped when
another range request is downloading data.

I set akka logger to "DEBUG". I also printed messages when received
messages in the publisher, but I still cannot know who stopped the
publisher.

This is the source code (very short)

https://github.com/guofengzh/AkkaStreamsChunkedDownloader/blob/master/src/main/scala/com/jasonmartens/s3downloader/ChunkPublisher.scala

This is the output:

chunkList: List(RequestChunk(1,0,1024), RequestChunk(2,1024,1024),
RequestChunk(3,2048,1024), RequestChunk(4,3072,120))
Request
requestChunks
requesting chunks: totalDemand: 16, inFlightDemand: 0
Downloading chunk 1
ChunkDownloaded
chunkComplete: 1:true
ChunkData
chunkData 1 succeeded
emitChunks - Active: true
emitting chunk 1
requestChunks
requesting chunks: totalDemand: 15, inFlightDemand: 0
Downloading chunk 2
Stopped
Got 1024 bytes
[ERROR] [07/27/2016 09:37:30.508] [default-akka.actor.default-dispatcher-9]
[akka.actor.ActorSystemImpl(default)] Outgoing request stream error
(akka.stream.AbruptTerminationException)

Is the publisher implemented incorrectly and has been timed out?

Your help is appreciated.

Thanks

Guofeng

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to