On Thu, 2007-05-17 at 15:30 +0200, Roland Weber wrote:
> Hi Julius, hi Oleg,
> 
> I'm working on my new build process and got as far as
> running the test cases. But when I try to run the
> httpclient test case TestSSLSocketFactory, it hangs.
> At least for several minutes, I don't know whether it
> would hit a timeout eventually. The statement that
> does not return is:
> 
>      Socket s = ssf.connectSocket(null, "localhost", port,
>                                   null, 0, params);
> 
> It hangs somewhere in HostnameVerifier.ALLOW_ALL
> when verifying the hostname after connecting.
> Any idea what might throw the test off?
> 

Hmm. Works for me like a charm. Besides, there is nothing in ALLOW_ALL
host verifier that can possibly enter an infinite loop or block
infinitely because it does not seem to do much ;-)

public final static HostnameVerifier ALLOW_ALL =
  new AbstractVerifier() {
    public final void verify(final String host, final String[] cns,
                                       final String[] subjectAlts) {
      // Allow everything - so never blowup.
    }

    public final String toString() { return "ALLOW_ALL"; }
};

The problem must be elsewhere. Can you get a thread dump of the hanging
process? 

Oleg

> cheers,
>   Roland
> 
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to