Hi Ben, If you are using HttpClient 3.0 you probably want to use HttpMethod.abort() <http://jakarta.apache.org/commons/httpclient/3.0/apidocs/org/apache/commons/httpclient/HttpMethod.html#abort()>. This is safe to call from another thread. Releasing the connection may also work, but it was not designed for this purpose.
Mike On Tue, 15 Mar 2005 09:07:27 +0100, Benjamin Pasero <[EMAIL PROTECTED]> wrote: > Hi, > > I am using the HttpClient with the SimpleConnectionManager. Now, in one > Thread I am executing a GetMethod in order to > connect to a website and another Thread is running for responsivness > (GUI) so that the user is able to cancel the > connection. Is it allowed to release the connection from the GUI Thread > or do I have to do so from the executing Thread? > > Thanks for helping, > Ben > > --------------------------------------------------------------------- > 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]
