2 questions...
a) Is it alright to call startSession but no endSession and rely on the
object to cleanup when it is garbage collected? I want to do something like:
class foo
{
InputStream getData(URL url) {
HttpClient c = new HttpClient();
c.startSession(url);
return c.getResponseBodyAsStream();
}
}
As soon as the InputStream is handled the class will be available to be
gc'd.
b) How do I setup connect timeouts? Do I have to use one of the classes
besides HttpClient? SO_TIMEOUT only affects receive of course.
Brian Macy
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>