One other note with this issue, it seems when I get it, the java process
never dies, and starts hogging all of my CPU. Perhaps there is some kind
of out-of-control looping that is going on?
On Monday, March 23, 2015 at 9:26:06 AM UTC-4, Paul Cleary wrote:
>
> I am trying to put together a route that does a decode with Gzip, and then
> uses an entity(as.
>
> With gzip decoding on, my route is not running. If I remove Gzip, then
> everything works fine.
>
> Here is the error I am getting:
>
>> Request was neither completed nor rejected within 1 second
>> (RouteTest.scala:53)
>
>
> Here is the route:
>
> // this is the route, "spanRouter" is an actor ref, does nothing right now
>
> path("spans") {
> post {
> decodeRequestWith(Gzip) {
> entity(as[Span]) { span =>
> complete {
> spanRouter ! span
> Future.successful(HttpResponse(StatusCodes.Accepted))
> }
> }
> }
> }
> }
>
>
> // and here is the test
>
> def compress(json:String) =
> Gzip.newCompressor.compress(ByteString(json.getBytes))
>
> ...
>
>
> val compressedBody = HttpEntity(ContentTypes.`application/json`,
> compress(json))
> Post("/spans",
> compressedBody).withHeaders(`Content-Encoding`(HttpEncodings.gzip)) ~>
> underTest ~> check {
> status shouldEqual StatusCodes.Accepted
> probe.receiveOne(3.seconds)
> }
>
>
--
>>>>>>>>>> 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.