On Fri, 2007-12-21 at 20:43 +0000, Christiaan Lamprecht wrote: > Hallo all, > > Just a quick question on SSL, MultiThreadedHttpConnectionManager and > Keep-Alive if anyone can help. > > > I've been experimenting with the MultiThreadedExample on the > HTTPClient website > (http://svn.apache.org/viewvc/httpcomponents/oac.hc3x/trunk/src/examples/MultiThreadedExample.java?view=markup) > and it seems that a new SSL connection/session is created for every > thread and the session is re-used within each thread for each > executeMethod call, but of course every time > "httpClient.executeMethod(method);" is called it waits for a reply > before I can make another request within that thread. > > > Is it possible to additionally make parallel requests within an SSL > session?
Why would you want to do that in the first place? While theoretically it should be possible for multiple SSL connections to share the same session ID, I am not sure SUN JSSE provides such possibility. Oleg > Perhaps using "executeMethod(HostConfiguration hostconfig, > HttpMethod method, HttpState state)" or one of the others which > provide some state to distinguish between the parallel requests. Or to > set it up in such a way that concurrent threads share an SSL session. > > > Any help would be much appreciated. > > > Many thanks > Christiaan > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
