HttpManager hangs.

Hi all,

I am having real difficulty working out why HttpManager from Jigsaw 2.2.0 is
hanging on me. Can I ask a huge favour of the list - this should only take
two minutes. 
Could someone else that is using Jigsaw 2.2.0 please confirm that they can
reproduce this problem?
Below are two files - i didn't attach them as Im not sure of attachment
etiquette.
The first will build the second under Win32 if you recreate these files
under the root of your Jigsaw installation directory.

The output should be 30 iterations of the loop, GETting a known fast web
page.
HOwever, only a few iterations are printed out before the program hangs
inside manager.runRequest();

I would be _very_ appreciative of anyone who can confirm this is a bug so I
can raise it with the Jigsaw team.

Thanks _very_ much for your time,
Owen Roberts.


-------------------testProblem.bat----------------
set CLASSPATH=classes\jigsaw.jar;.;
javac -classpath %CLASSPATH% testProblem.java
java -classpath %CLASSPATH% testProblem
----------------------end testProblem.bat--------------

-----------------start testProblem.java-------
import java.lang.String;
import java.net.*;
import java.io.*;
import java.util.*;
import org.w3c.www.protocol.http.HttpManager;
import org.w3c.www.protocol.http.HttpException;
import org.w3c.www.protocol.http.Reply;
import org.w3c.www.protocol.http.Request;
import org.w3c.www.http.HTTP;
import org.w3c.www.mime.MimeType;


public final class testProblem
{
    public static void main (String[] args)
    {
        HttpManager     manager = HttpManager.getManager() ;
        for (int i=0; i<30; i++)
        {
            try
            {
                Request request = manager.createRequest() ;
                request.setMethod("GET") ;
                request.setURL(new URL("http://www.google.com/"));
                System.out.println("start a get...");
                Reply    reply = manager.runRequest(request) ;
                System.out.println("complete a get...");
            }
            catch(MalformedURLException e)
            {
                System.out.println("caught: " + e.toString());
            }
            catch(HttpException e)
            {
                System.out.println("caught: " + e.toString());
            }
            catch(IOException e)
            {
                System.out.println("caught: " + e.toString());
            }
        }
    }
}
----------------------------end testProblem.java-----------------





-----------------------------------------------------------------------------
Baltimore Technologies plc will not be liable for direct,  special,  indirect 
or consequential  damages  arising  from  alteration of  the contents of this
message by a third party or as a result of any virus being passed on.

In addition, certain Marketing collateral may be added from time to time to
promote Baltimore Technologies products, services, Global e-Security or
appearance at trade shows and conferences.

This footnote confirms that this email message has been swept by
Baltimore MIMEsweeper for Content Security threats, including
computer viruses.
   http://www.baltimore.com

Received on Wednesday, 15 August 2001 08:44:41 UTC