Thanks for this information, I created a ticket <https://github.com/akka/akka/issues/16795> from it.
Just as a side-note: dropping request methods (with your dropHead addition) will break things, so this is not an option. But we’ll figure it out :-) unless someone beats us to it. Regards, Roland > 9 feb 2015 kl. 08:44 skrev Jim Hazen <jimhazen2...@gmail.com>: > > This appears to me to be a problem with rates and cycles within the > HttpClient.transportToConnectionClientFlow. > > Augmenting the flow with a buffer as described in > http://doc.akka.io/docs/akka-stream-and-http-experimental/1.0-M3/scala/stream-graphs.html > seems to get us much farther. Here's the updated flow logic: > > requestIn ~> methodBypassFanout ~> terminationMerge.requestInput ~> > requestRendering ~> transportFlow ~> responseParsingMerge.dataInput ~> > responsePrep ~> terminationFanout ~> responseOut > methodBypassFanout ~> Flow[HttpRequest].buffer(10, OverflowStrategy.dropHead) > ~> methodBypass ~> responseParsingMerge.methodBypassInput > terminationFanout ~> terminationMerge.terminationBackchannelInput > > Since for our example case, we're doing nothing but GET calls, dropping a > RequestMethod guaranteed to be a GET would appear to be risk free and proves > there's a rate based deadlock. Although this isn't a proper fix, it prevents > the deadlock and allows us to continue processing farther than before. > > However, we eventually reach a point where the server ends up crashing with: > java.lang.StackOverflowError > at akka.parboiled2.Parser.__run(Parser.scala:197) > at > akka.http.model.parser.UriParser.parseHttpRequestTarget(UriParser.scala:203) > at akka.http.model.Uri$.parseHttpRequestTarget(Uri.scala:252) > at > akka.http.engine.parsing.HttpRequestParser.parseRequestTarget(HttpRequestParser.scala:107) > at > akka.http.engine.parsing.HttpRequestParser.parseMessage(HttpRequestParser.scala:42) > at > akka.http.engine.parsing.HttpMessageParser.startNewMessage(HttpMessageParser.scala:86) > at > akka.http.engine.parsing.HttpRequestParser.parseEntity(HttpRequestParser.scala:157) > at > akka.http.engine.parsing.HttpMessageParser.parseHeaderLines(HttpMessageParser.scala:126) > at > akka.http.engine.parsing.HttpRequestParser.parseMessage(HttpRequestParser.scala:45) > at > akka.http.engine.parsing.HttpMessageParser.startNewMessage(HttpMessageParser.scala:86) > at > akka.http.engine.parsing.HttpRequestParser.parseEntity(HttpRequestParser.scala:157) > at > akka.http.engine.parsing.HttpMessageParser.parseHeaderLines(HttpMessageParser.scala:126) > at > akka.http.engine.parsing.HttpRequestParser.parseMessage(HttpRequestParser.scala:45) > ... > > Hopefully this info makes a core dev's day a little easier. > > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ <http://akka.io/docs/> > >>>>>>>>>> Check the FAQ: > >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html > >>>>>>>>>> <http://doc.akka.io/docs/akka/current/additional/faq.html> > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > >>>>>>>>>> <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 akka-user+unsubscr...@googlegroups.com > <mailto:akka-user+unsubscr...@googlegroups.com>. > To post to this group, send email to akka-user@googlegroups.com > <mailto:akka-user@googlegroups.com>. > Visit this group at http://groups.google.com/group/akka-user > <http://groups.google.com/group/akka-user>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. Dr. Roland Kuhn Akka Tech Lead Typesafe <http://typesafe.com/> – Reactive apps on the JVM. twitter: @rolandkuhn <http://twitter.com/#!/rolandkuhn> -- >>>>>>>>>> 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 akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.