W3C home > Mailing lists > Public > www-jigsaw@w3.org > January to February 2001

Re: Client Side API - HTTP Connections

From: Corey Wineman <cwineman@perseus.anserwv.org>
Date: Fri, 2 Feb 2001 13:10:52 -0500
Message-ID: <006601c08d43$7b12f8a0$081d4781@anserwv.org>
To: <www-jigsaw@w3.org>

I have tried a couple of times to use the HTTP client stuff from Jigsaw.
Once about 6 months ago, and again about a week ago. I was trying to use
their stuff instead of the URLConnection classes that come with the JDK.

I had the same problem as you. At first everything seemed fine, and then I
started losing connections. I think you are right, Connections aren't being
closed properly. I think the problem is somewhere in the getConnection()
method in HttpBasicServer. Sometimes it will recover and Connections will be
released, other times Connections are lost forever.

Did anyone send you a response? I didn't see one. If I have time I will try
and fix it myself, but it looks like a threading problem, and threading
problems give me headaches.


----- Original Message -----
From: <mark@mindnoise.com>
To: <www-jigsaw@w3.org>
Sent: Wednesday, January 31, 2001 6:43 AM
Subject: Client Side API - HTTP Connections

> Hello There!
> I'm currently using the Jigsaw 2.1.2 Client side API. Unfortunatley
> I'm experiencing intermittent delays in the time required to
> complete requests.
> After a whole lot of 'snooping around', I've noticed that HTTP
> Connection aren't been closed correctly. This is causing the next
> HTTP Connection to be delayed.
> Using the client API is it possible or how do I force a Http
> connection to be closed?
> Can anyone shed any light on how Jigsaw handles multiple requests
> to the same host. From what I can piece together, an instance of
> HttpBasicServer manages a synchronous connection pool for a
> particular host.
> I think that my problem is been caused because the connection pool
> is full and requests are been qued until a connection completes or
> times out. Unfortunately they are never been released to the pool
> because they aren't closing properly.
> Or maybe I've recently been taking too many drugs, haven't slept
> enough and should go home before I loose my mind....
> Cheers
> Mark Katha
> FYI: I've attached my request code...
>         HttpManager manager = HttpManager.getManager();
>         Request aRequest = manager.createRequest();
>         aRequest.setMethod("GET") ;
>         aRequest.setURL(new URL(aUrl));
>         aRequest.setHost(aHost);
>         Reply aReply = manager.runRequest(aRequest);
> --------------------------------------------------------------------
> Mail2Web - Check your email from the web at
> http://www.mail2web.com/ .
Received on Friday, 2 February 2001 13:14:14 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:37 UTC