I am not completely sure, but the dead letters are probably nothing to
worry about. I had a similar experience when I played around with it a
few weeks ago. See this thread:
https://groups.google.com/d/topic/akka-user/4ybCq7mEp4g/discussion

On Wed, Nov 26, 2014 at 11:52 PM, Paul Cleary <[email protected]> wrote:
> Using a CURL, I do seem to get some data going down, it does the
> concatenation.
>
>> < HTTP/1.1 200 OK
>>
>> * Server akka-http/2.3.7 is not blacklisted
>>
>> < Server: akka-http/2.3.7
>>
>> < Date: Wed, 26 Nov 2014 22:50:32 GMT
>>
>> < Transfer-Encoding: chunked
>>
>> < Content-Type: application/x-gzip
>>
>> <
>>
>> * Connection #0 to host localhost left intact
>>
>> Hello thereMy name is JohnI like potatoes
>
>
> I am doing multiple files and concatenating them together simply to simulate
> chunking
>
> I do see the following output however, which has me concerned:
>
> [INFO] [11/26/2014 17:50:32.128] [default-akka.actor.default-dispatcher-9]
> [akka://default/user/IO-HTTP/$a/flow-30-0-iterable] Message
> [akka.actor.Terminated] from
> Actor[akka://default/user/IO-HTTP/$a/flow-30-0-iterable/$a#-169553250] to
> Actor[akka://default/user/IO-HTTP/$a/flow-30-0-iterable#-1655378203] was not
> delivered. [7] dead letters encountered. This logging can be turned off or
> adjusted with configuration settings 'akka.log-dead-letters' and
> 'akka.log-dead-letters-during-shutdown'.
> [INFO] [11/26/2014 17:50:32.129] [default-akka.actor.default-dispatcher-6]
> [akka://default/user/IO-HTTP/$a/flow-31-0-iterator] Message
> [akka.stream.impl.RequestMore] from Actor[akka://default/deadLetters] to
> Actor[akka://default/user/IO-HTTP/$a/flow-31-0-iterator#-959699535] was not
> delivered. [8] dead letters encountered. This logging can be turned off or
> adjusted with configuration settings 'akka.log-dead-letters' and
> 'akka.log-dead-letters-during-shutdown'.
> [INFO] [11/26/2014 17:50:32.130] [default-akka.actor.default-dispatcher-11]
> [akka://default/user/IO-HTTP/$a/flow-31-1-map] Message
> [akka.stream.impl.RequestMore] from Actor[akka://default/deadLetters] to
> Actor[akka://default/user/IO-HTTP/$a/flow-31-1-map#-52495379] was not
> delivered. [9] dead letters encountered. This logging can be turned off or
> adjusted with configuration settings 'akka.log-dead-letters' and
> 'akka.log-dead-letters-during-shutdown'.
> [INFO] [11/26/2014 17:50:32.131] [default-akka.actor.default-dispatcher-14]
> [akka://default/user/IO-HTTP/$a/flow-27-1-identity] Message
> [akka.stream.impl.RequestMore] from Actor[akka://default/deadLetters] to
> Actor[akka://default/user/IO-HTTP/$a/flow-27-1-identity#-2121255318] was not
> delivered. [10] dead letters encountered, no more dead letters will be
> logged. This logging can be turned off or adjusted with configuration
> settings 'akka.log-dead-letters' and
> 'akka.log-dead-letters-during-shutdown'.
>
>
>
>
> On Wednesday, November 26, 2014 5:34:34 PM UTC-5, rklaehn wrote:
>>
>> It seems to me that you are gzip-compressing each file individually.
>> So the result of your request will be the concatenation of multiple
>> gzipped files, which does not make any sense.
>>
>> You should get some data though. Have you tried testing with wget or curl?
>>
>> On Wed, Nov 26, 2014 at 11:27 PM, Paul Cleary <[email protected]> wrote:
>> > I am trying to created a chunked response from a series of files on the
>> > file
>> > system.  I am using the Test Server code as the basis.
>> >
>> > Here is my sample code:
>> >
>> >   val requestHandler: HttpRequest ⇒ HttpResponse = {
>> >     case HttpRequest(GET, Uri.Path("/"), _, _, _) ⇒
>> >       val dir = "/test-data/"
>> >       println(s"\r\n handling request")
>> >       val s =
>> >
>> > Source(files.listFiles().filter(_.getName().endsWith(".txt")).toIterator)
>> > map { file =>
>> >         println(s"\r\n reading file ${file.getName}")
>> >
>> > java.nio.file.Files.readAllBytes(Paths.get(file.getAbsolutePath))
>> >       } map { byteArray =>
>> >         println(s"\r\n getting bytes ${byteArray.length}")
>> >         new GzipCompressor().compress(ByteString(byteArray))
>> >       }
>> >       HttpResponse(entity =
>> > HttpEntity.Chunked.fromData(MediaTypes.`application/x-gzip`, s))
>> >     case _: HttpRequest ⇒ HttpResponse(404, entity = "Unknown
>> > resource!")
>> >   }
>> >   streamingServer foreach { case Http.ServerBinding(localAddress,
>> > connectionStream) =>
>> >     Source(connectionStream) foreach { case
>> > Http.IncomingConnection(remoteAddress, requestProducer,
>> > responseConsumer) =>
>> >       println(s"\r\n Accepted new connection from $remoteAddress")
>> >
>> >
>> > Source(requestProducer).map(requestHandler).to(Sink(responseConsumer)).run()
>> >     }
>> >   }
>> >
>> >
>> > When I run this, I get a gz file in my browser, but I am not getting any
>> > of
>> > the data.
>> >
>> > Do I need to specify that this is a gzip stream or do something else so
>> > all
>> > the bytes get down?
>> >
>> > Here is the response header I am seeing:
>> >
>> > Content-Type:
>> > application/x-gzip
>> > Date:
>> > Wed, 26 Nov 2014 22:26:04 GMT
>> > Server:
>> > akka-http/2.3.7
>> > Transfer-Encoding:
>> > chunked
>> >
>> > --
>> >>>>>>>>>>> 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 http://groups.google.com/group/akka-user.
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
>>>>>>>>>>> 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 http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.

-- 
>>>>>>>>>>      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 http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to