From: Jesse M. <jes...@gm...> - 2016-09-09 13:17:39
|
best to take your discussion over to the eclipse mailing lists, this is 2 hosting locations ago :) https://www.eclipse.org/jetty/documentation/current/advanced-contributing.html#community cheers! Jesse -- jesse mcconnell jes...@gm... On Thu, Sep 8, 2016 at 10:14 PM, Adam McMahon <ad...@cs...> wrote: > Hi, > > New to Jetty, I am looking for a lightweight non-blocking httpClient that > does not use an individual thread per HTTP client request, and uses an > async call-back. > > If I understood the docs correctly, the Jetty HttpClient should do this, > as it is NIO and async api. > > So, I created an example where I fired off 40 requests (using the async > api), and before the results came back I printed all the threads in the > jvm. There were about 28 threads of the title "HttpClient@127419417..." > Wow, I have almost as many threads as requests. (Note I used the same > httpClient instance). > > Is this the expected behavior of the http client? > > Thanks, > > -Adam > > ------------------------------------------------------------ > ------------------ > > _______________________________________________ > Jetty-support mailing list > Jet...@li... > https://lists.sourceforge.net/lists/listinfo/jetty-support > > |