hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carl <li...@thesearchagency.com>
Subject Re: Really Long Pause
Date Thu, 14 Apr 2005 22:14:21 GMT
On Thursday 14 April 2005 17:54, Oleg Kalnichevski wrote:
> Carl,
>
> Is secure.xyzzy.con configured to use SSL?
>
> Oleg
>

Well, thats a name I made up, but yes, all the servers I  
am seeing this with are using SSL.

Like I say, eventually it connects, and sometimes it 
connects quickly, but more often than not, it takes a long 
time.

Another data point. When doing the install, I had a similar 
long pause. I haven't dug into it enough to see exactly 
where it happened, but thats what I'm going to try next. 

The ant output looked like:


...
test:
     [java] [WARN] HttpMethodBase - Chunk-encoded body missing
     [java] [WARN] HttpMethodBase - Chunk-encoded body missing
     [java] [WARN] ProxyRequestHandler - chunked stream ended unexpectedly
     [java] [WARN] HttpMethodBase - Chunk-encoded body missing
     [java] [WARN] ProxyRequestHandler - chunked stream ended unexpectedly
     [java] [WARN] HttpMethodBase - Chunk-encoded body missing
     [java] .........................................
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [WARN] HttpMethodBase - Going to buffer response body of large or unknown size.
Using getResponseAsStream instead is recommended.
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [WARN] HttpMethodBase - Going to buffer response body of large or unknown size.
Using getResponseAsStream instead is recommended.
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [WARN] HttpMethodBase - Going to buffer response body of large or unknown size.
Using getResponseAsStream instead is recommended.
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [WARN] HttpMethodBase - Going to buffer response body of large or unknown size.
Using getResponseAsStream instead is recommended.
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] .........................................
     [java] [WARN] HttpMethodBase - Extra response data detected - closing connection
     [java] [WARN] HttpMethodBase - Extra response data detected - closing connection
     [java] .........................................
     [java] .........................................
     [java] [WARN] CookieSpec - Invalid cookie state: domain not specified
     [java] [WARN] CookieSpec - Invalid cookie state: path not specified
     [java] .........................................
     [java] .........................................
     [java] [INFO] AuthChallengeProcessor - Basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - unsupported1 authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodDirector - No credentials available for BASIC 'test'@localhost:33173
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodDirector - No credentials available for BASIC 'test'@localhost:33175
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodDirector - Failure authenticating with BASIC 'test'@localhost:33183
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] .........................................
     [java] [WARN] HttpMethodDirector - Required credentials not available for BASIC <any
realm>@localhost:33191
     [java] [WARN] HttpMethodDirector - Preemptive authentication requested but no default
credentials available
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodDirector - No credentials available for BASIC 'test'@localhost:33191
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodDirector - No credentials available for BASIC 'test'@localhost:33201
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodDirector - No credentials available for BASIC 'test'@localhost:33205
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodDirector - Failure authenticating with BASIC 'test'@localhost:33221
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [WARN] HttpMethodDirector - Required proxy credentials not available for BASIC
<any realm>@localhost:33234
     [java] [WARN] HttpMethodDirector - Preemptive authentication requested but no default
proxy credentials available
     [java] [WARN] HttpMethodDirector - Required proxy credentials not available for BASIC
<any realm>@localhost:33238
     [java] [WARN] HttpMethodDirector - Preemptive authentication requested but no default
proxy credentials available
     [java] [WARN] HttpMethodDirector - Required credentials not available for BASIC <any
realm>@localhost:33237
     [java] [WARN] HttpMethodDirector - Preemptive authentication requested but no default
credentials available
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodDirector - No credentials available for BASIC 'test'@localhost:33237
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [WARN] DigestScheme - Unsupported qop detected: jakarta
     [java] [INFO] AuthChallengeProcessor - digest authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - ntlm authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - ntlm authentication scheme selected
     [java] .........................................
     [java] [INFO] HttpMethodDirector - Redirect requested but followRedirects is disabled
     [java] [ERROR] HttpMethodDirector - Narrowly avoided an infinite loop in execute
     [java] [INFO] HttpMethodDirector - Redirect requested but followRedirects is disabled
     [java] [WARN] HttpMethodDirector - Relative redirect location '/relativelocation/' not
allowed
     [java] [INFO] HttpMethodDirector - Redirect requested but followRedirects is disabled
     [java] [ERROR] HttpMethodDirector - Narrowly avoided an infinite loop in execute
     [java] [INFO] HttpMethodDirector - Redirect requested but followRedirects is disabled
     [java] [WARN] HttpMethodDirector - Relative redirect location '/relativelocation/' not
allowed


(really long pause....)


     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] .........................................
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [WARN] HeadMethod - Body content returned in response to HTTP HEAD
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodDirector - Failure authenticating with BASIC 'test'@localhost:33458
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodDirector - Failure authenticating with BASIC 'test'@localhost:33488
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] .........................................
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodDirector - Failure authenticating with BASIC 'test'@localhost:33518
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodDirector - Failure authenticating with BASIC 'test'@localhost:33548
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodDirector - Failure authenticating with BASIC 'test'@localhost:33578
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodDirector - Failure authenticating with BASIC 'test'@localhost:33608
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodDirector - Failure authenticating with BASIC 'test'@localhost:33638
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodDirector - Failure authenticating with BASIC 'test'@localhost:33668
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] [INFO] AuthChallengeProcessor - basic authentication scheme selected
     [java] [INFO] HttpMethodBase - Response content length is not known
     [java] ...................................
     [java] Time: 3,924.219

     [java] OK (445 tests)


BUILD SUCCESSFUL
Total time: 65 minutes 38 seconds

.....



> On Wed, 2005-04-13 at 23:24 -0400, Carl wrote:
> > Hi, all,
> >
> > I wasn't able to find an answer for this in the archives.
> >
> > I have some code that uses httpclient, and occasionally takes a
> > REALLY long time to connect. What's weird is that it's not taking
> > the time doing the TCP connect, nor doing the DNS lookups. Also,
> > it will eventually connect, it just may take up to TWO HOURS or
> > longer. Also, I only see this on production hardware, in an
> > otherwise reliable data center, and only with httpclient apps.
> > Tools like wget, etc., work consistently.
> >
> > Is this something anyone else has seen?
> >
> > Here is what I'm seeing in the wire logs. A more detailed log is
> > attached:
> >
> > 2005/04/13 12:45:18:081 PDT [DEBUG] HttpConnection - Open
> > connection to secure.xyzzy.con:443
> > 2005/04/13 13:03:05:844 PDT [DEBUG] header - >>
> > "POST /accountmanagement-developer/login_session.asp HTTP/1.1[\r]
> > [\n]"
> >
> > (the destination server name has been changed to protect the
> > innocent)
> >
> > Using tcpdump, I see a dns requests to resolve the host name of
> > the machine running the code @ 12:45:18:165 with reasonable
> > responses. In fact, it asks for an address for it's own name, a
> > name for its address, and the address of its name again.
> >
> > Then a whole bunch of nothing.
> >
> > Then the destination server hostname is resolved @13:03:05:728
> > (dns request and response), and things go on normally from there.
> >
> > Any ideas?
> >
> > Thanks!
> >
> > Carl
> > -----------------------------------------------------------------
> >---- To unsubscribe, e-mail:
> > httpclient-user-unsubscribe@jakarta.apache.org For additional
> > commands, e-mail: httpclient-user-help@jakarta.apache.org
>
> -------------------------------------------------------------------
>-- To unsubscribe, e-mail:
> httpclient-user-unsubscribe@jakarta.apache.org For additional
> commands, e-mail: httpclient-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Mime
View raw message