Protocol Interceptors are supposed to be thread-safe. However, BasicHttpProcessor is not thread-safe as changes to the Lists are not synchronized.
The rest of the Interceptors have no fields so are immutable. They operate on non-thread-safe classes, however I assume that such classes are confined to a single thread. == SessionRequestImpl is supposed to be thread-safe, however there are several mutable fields that are not synch or volatile. == Are HttpParams supposed to be shared between threads? The Javadoc say that they are intended to be immutable once initialised; however this does not guarantee that the values will be visible to all threads. BasicHttpParams could be made less thread unsafe by making the map final, and clear()ing rather than null-ing it. Likewise, if there was a copy constructor, if could save the map variable after creating it. S/// --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
