Re: [akka-user] Re: Akka HTTP web-socket authentication session ID

2015-08-13 Thread Akka Team
Hi Guido, for server-sent events (i.e. SSE) there is this example https://github.com/hseeberger/akka-sse/blob/master/akka-sse-example/src/main/scala/de/heikoseeberger/akkasse/example/TimeServer.scala, although it only covers the case where the stream of events is already known at the time the

Re: [akka-user] Warning documentation on the Http.bindAndHandle methods

2015-08-13 Thread Akka Team
Thanks for the pointer, Johannes fixed that in this commit https://github.com/akka/akka/commit/7d3953d13d8c57ff7958202f3e573d9a2b770b34 right away (without telling anyone ;-) ). Regards, Roland On Mon, Aug 10, 2015 at 2:11 PM, Chris Baxter cbax...@gmail.com wrote: The bindAndHandle methods on

Re: [akka-user] Actors without side effects (var-decl)

2015-08-13 Thread Akka Team
To answer the last two questions of the OP: using a `var sum: Int` saves one object allocation per processed message, which could be significant depending on the use-case. Due to the duties of `def receive` being to return the initial behavior the Actor you present is structurally what needs to be

Re: [akka-user] Re: akka-http 1.0 RC and SSL and Java

2015-08-13 Thread Johannes Rudolph
Hi Rob, here's some recent testing code that creates and uses certificates that are signed by a custom CA. It doesn't require fiddling with Java's `keytool`. The instructions should work similarly for proper certificates in which case you leave out the CA and Create server certificate steps

Re: [akka-user] Re: Looking for Code example to create akka.http.javadsl.testkitTestResponse

2015-08-13 Thread Viktor Klang
java.lang.Void? -- Cheers, √ On 13 Aug 2015 09:01, Akka Team akka.offic...@gmail.com wrote: Yes, that is a little unfortunate: the Scala type system allows the expression of non-termination (the bottom type—Nothing) which Java does not know about, so this it what happens “under the hood”

Re: [akka-user] Re: akka-http 1.0 RC and SSL and Java

2015-08-13 Thread akkanex
Thanks Will! Am Donnerstag, 13. August 2015 02:28:25 UTC+2 schrieb Will Sargent: The SSLContext is responsible for handling the trust store -- you set it up and pass that into akka-http using HttpsContext.create(sslContext,...). How to set up the SSLContext is a bit confusing. There are

Re: [akka-user] [Akka 2.1.4] ConsistentHash router and memory issues

2015-08-13 Thread Dima Gutzeit
OMG. I better stop using ConsistentHashing routing then. Bummer. Regards,Dima Gutzeit On Thu, Aug 13, 2015 at 2:38 PM, Akka Team akka.offic...@gmail.com wrote: Hi Dima, as far as I can see the implementation is quite wasteful in creating these ConsistentActorRef wrappers (100K for every