Hi Jim,

There is no way to experiment with streams and http together with akka 2.4 
right now. Streams and http is developed against the stable 2.3.x branch and 
they have never been tested against 2.4. As soon as streams has stabilized and 
released we will port them to 2.4 as well.

B/

On 3 March 2015 at 06:37:31, Jim Hazen ([email protected]) wrote:

Are these 1.0-M4 modules intended to be compatible with akka-2.4-SNAPSHOT?

I'm having trouble passing a custom materializer to an 
IncommingConnection.handleWithAsyncHandler().  The default materializer seems 
to work fine, but I wanted to play with buffer sizes.


implicit val materializer = ActorFlowMaterializer()
val matSettings = materializer.settings.withInputBuffer(16, 32)



Http().bind(interface = "0.0.0.0", 5001).runForeach { conn =>
  conn.handleWithAsyncHandler(r => 
Future(HttpResponse()))(ActorFlowMaterializer(matSettings))
}.onComplete(_ => actorSystem.terminate())

The fails at runtime with:

java.lang.NoSuchMethodError: 
akka.pattern.AskableActorRef$.$qmark$extension(Lakka/actor/ActorRef;Ljava/lang/Object;Lakka/util/Timeout;)Lscala/concurrent/Future;
at 
akka.stream.impl.ActorFlowMaterializerImpl.actorOf(ActorFlowMaterializerImpl.scala:185)
at 
akka.stream.impl.ActorFlowMaterializerImpl$$anon$2.processorFor(ActorFlowMaterializerImpl.scala:92)
at 
akka.stream.impl.ActorFlowMaterializerImpl$$anon$2.materializeAtomic(ActorFlowMaterializerImpl.scala:77)
at 
akka.stream.impl.MaterializerSession$$anonfun$materializeModule$1.apply(StreamLayout.scala:336)
at 
akka.stream.impl.MaterializerSession$$anonfun$materializeModule$1.apply(StreamLayout.scala:334)


I couldn't find akka-stream or akka-http modules as part of the akka-2.4 
distribution.  Is there a better way to experiment with akka-streams and 
akka-http with akka-2.4?  Aside from tweaking the handler's materializer, is 
there another way to control the amount of buffering/demand generated by the 
handleWith* constructs?

--
>>>>>>>>>> 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.
--
Björn Antonsson
Typesafe Inc. – Reactive Apps on the JVM
twitter: bantonsson

JOIN US. REGISTER TODAY!
Scala
Days
March 16th-18th,
San Francisco

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