Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 351428

Summary: Jetty client is pausing before reading a next response from the server
Product: [RT] Jetty Reporter: hrishi_sir
Component: clientAssignee: Jan Bartel <janb>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: cowwoc2020, hrishi_sir, jetty-inbox, mgorovoy
Version: unspecified   
Target Milestone: 7.4.x   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
thread dump none

Description hrishi_sir CLA 2011-07-07 07:44:01 EDT
Build Identifier: 

We're seeing the issue when jetty client is pausing ( not sure exactly where) before reading a next chunk from the response. The response is sent as gzip from the server.
If you can help in telling which class ( from jetty projects) to put a breakpoint ( where it collects the response), I can debug & can write a junit test case to publish it here.

Reproducible: Always
Comment 1 Jan Bartel CLA 2011-07-11 01:08:13 EDT
Hi,

Firstly, can you specify exactly which jetty version you're using?

Have you tried doing a thread dump during the pause? Please post the output of that here.

thanks
Jan
Comment 2 hrishi_sir CLA 2011-07-11 07:37:01 EDT
Created attachment 199409 [details]
thread dump

We're using jettty-client-7.3.1v20110307.

Please find attached thred dump
Comment 3 Jan Bartel CLA 2011-07-11 22:05:28 EDT
Thanks for the thread dump.Do you have 2 HttpClients? It is usually best to have only 1 HttpClient, as each has multiple threads and is capable of connecting to multiple destinations.

Nothing unusual in the dump. I suggest you:

1. send a full description of the "pause". Does the response ever complete 
   or not? How long is the "pause"? Is it consistent?

2. turn on debug logging:
    java -Dorg.eclipse.jetty.util.log.stderr.DEBUG=true -jar start.jar
   Look for output before and during the "pause". Particularly for output like:
   
      JVM BUG(s) - injecting delay
      JVM BUG(s) - cancelled keys 
      JVM BUG(s) - recreating selector 

3. do several repeated thread dumps during the pause to see what, if anything
   has changed

4. obtain a tcpdump/wireshark trace and see what is happening during the "pause"

5. try running on a non-windows box and see if the behaviour is the same

6. try a more recent version of the jvm to see if the behaviour is the same

7. try upgrading to jetty-7.4.4 and see if the behaviour is the same
Comment 4 Gili Mising name CLA 2011-08-26 09:19:56 EDT
Could be related to bug #355948 which I just filed.
Comment 5 Michael Gorovoy CLA 2011-08-30 12:40:17 EDT
One more question. What version of Java are you using?
Comment 6 Jan Bartel CLA 2011-09-08 21:06:52 EDT
hrishi_sir,

Do you have any of the info we requested so we can progress this?

thanks
Jan
Comment 7 Jan Bartel CLA 2011-09-20 20:52:52 EDT
Due to lack of information, I am closing this issue. If the problem is not addressed by the information in issue https://bugs.eclipse.org/bugs/show_bug.cgi?id=355948, please reopen and supply the information we previously requested so we can investigate.