hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roland Weber" <ROLWE...@de.ibm.com>
Subject Re: Cookies, Chunked-Post & Threads
Date Wed, 12 Nov 2003 14:01:28 GMT
Hello Sven

you don't specify the HttpState for a connection.
You specify it for each method execution:

HttpClient.executeMethod
   (HostConfiguration, HttpMethod, HttpState)

If you have used the same client from different
threads without specifying different states, that
might be a problem.

regards,
  Roland






Sven Köhler <skoehler@upb.de>
12.11.2003 14:27
Please respond to "Commons HttpClient Project"
 
        To:     Commons HttpClient Project 
<commons-httpclient-dev@jakarta.apache.org>
        cc: 
        Subject:        Re: Cookies, Chunked-Post & Threads


> 1. Cookie Container:
> Let every session use it's own HttpState object. That's where
> HTTP Client stores it's cookies. The only problem is that it's
> not serializable, so it won't work with persistent sessions.

That's OK, but how do i say which HttpState to use for which connection?

> 2. Thread Safety:
> HTTP Client is thread safe as long as you use a thread safe
> connection manager.

Perhaps that's a bug or just intended behaviour, but multiple 
HttpClient-Object used from different threads using one 
MultiThreadHttpConnectionManager doesn't seems to work properly.



---------------------------------------------------------------------
To unsubscribe, e-mail: 
commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: 
commons-httpclient-dev-help@jakarta.apache.org



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message