Hello, has anyone ever come back on this?

Il giorno lunedì 8 febbraio 2016 22:20:55 UTC+1, Jim Hazen ha scritto:
>
> I have this basic client test.  It works way better in 2.4.2-RC2 than ever 
> before, however I still get an error during cleanup:
>
> [akka.actor.ActorSystemImpl(HttpClient)] Outgoing request stream error (
> akka.stream.AbruptTerminationException)
>
> Seems like there's a akka-http/streams bug here, or a user error on my 
> part.
>
> object StreamClientTest extends App {
>   import scala.concurrent.ExecutionContext.Implicits.global
>
>   implicit val system = ActorSystem("HttpClient", ConfigFactory.empty())
>   implicit val materializer = ActorMaterializer()
>
>   val host = "akka.io"
> //  val host = "www.google.com"
>   val uri = s"http://$host/";
>
>   val eventuallyResponse = Http().singleRequest(Get(uri = uri))
>   for(response <- eventuallyResponse)
>   {
>     println(s"Status: ${response.status}")
>     response.entity.dataBytes
>       .runForeach {bs => print(bs.utf8String)}
>       .onComplete {_ => materializer.shutdown(); system.terminate()}
>   }
> }
>
>
>

-- 
>>>>>>>>>>      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