[akka-user] Re: TCP Handshaking custom stage drives me crazy

2017-06-02 Thread Henrik Larsson
Thanks for the help, yes that did the trick to add one more pull for sslIn. The reason bytesIn is empty is because I really dont need a bidishape. I need this logic encapsulated in something with one input and two outputs because after this handshaking is done there is no need to send any more

[akka-user] Re: TCP Handshaking custom stage drives me crazy

2017-05-30 Thread Henrik Larsson
c.b.i.b.temp.SubscriptionGraphStage - StatusMessage(status,Some(123),None,None,None,false,SUCCESS) 20:45:53 [default-akka.actor.default-dispatcher-4] INFO c.b.i.b.temp.SubscriptionGraphStage - Subscribed On Tuesday, May 30, 2017 at 8:41:44 PM UTC+2, Henrik Larsson wrote: > > > *Im trying to construct a

[akka-user] TCP Handshaking custom stage drives me crazy

2017-05-30 Thread Henrik Larsson
*Im trying to construct a GaphStage that will be used when connecting to a TCP socket. The following protocol is used when connecting: 1. Materialize TCP flow to create an outgoingConnection 2. Socket return Connect message 3. If Connect message OK send AuthenticationMessage 4. If OK response

[akka-user] Architectural suggestion on stream mixed Actor/Stream application

2017-05-09 Thread Henrik Larsson
Im finding the idea of Akka Stream a very nice fit to the application im building. Im building a realtime decision system with the following functionality. 1. Make HTTPS POST request to get a *sessionToken* string 2. Start a keep-alive service to ping session server at 3h intervals 3.

Re: [akka-user] Confusion in documentation regarding HTTPS support in Akka HTTP

2017-05-08 Thread Henrik Larsson
, Konrad Malawski wrote: > > It's plain Java, configure the SSLContext as usual and provide it to the > HttpsConnectionContext. > > -- > Konrad `ktoso` Malawski > Akka <http://akka.io> @ Lightbend <http://lightbend.com> > > On 8 May 2017 at 15:18:21, Henrik L

Re: [akka-user] Confusion in documentation regarding HTTPS support in Akka HTTP

2017-05-08 Thread Henrik Larsson
Ok thanks, so far I have found this example wich i guess i can make work on the client side also https://github.com/rklaehn/akkahttpsserver/blob/master/src/main/scala/httpsserver/Server.scala However I would like to send the key and crt separate and in the exampel they use p12. Is there any