You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2010/10/11 08:01:04 UTC

DO NOT REPLY [Bug 50072] New: Blank responses

https://issues.apache.org/bugzilla/show_bug.cgi?id=50072

           Summary: Blank responses
           Product: Tomcat 6
           Version: 6.0.24
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: petr@creactive.cz


Created an attachment (id=26153)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26153)
Tcp dump log with blank and normal responses.

We are facing problem with empty file response from server, after upgrading
from Apache 6.0.20 to any higher version. Approx 20% generated responses went
ok, 80% responses were empty files without any error log. Types of files was
XML, HTML pages - with no diffrence. Files were requested by browsers, PHP
scripts (XML) from different client servers.

I started to log all the requests on top of doGet() method and all the normal
responses logged correctly. Incorrect requests never get to aplication, empty
files had no log.

There was no diffrence when server had load on the resources were free. We use
"org.apache.coyote.http11.Http11NioProtocol", requests were sent with GET
method. I attach TCPdump from one of the client-side servers - what they see.
After downgrade back to 6.0.20 the problem dissapeared, so we are kind of
locked there.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 50072] Blank responses

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50072

--- Comment #3 from petr@creactive.cz 2010-10-13 09:09:59 EDT ---
Created an attachment (id=26169)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26169)
tcpdump log - bio connector

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 50072] Blank responses

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50072

--- Comment #5 from Mark Thomas <ma...@apache.org> 2010-10-13 17:59:19 EDT ---
Created an attachment (id=26173)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26173)
Proposed patch

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 50072] Blank responses

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50072

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #8 from Mark Thomas <ma...@apache.org> 2010-10-19 08:29:54 EDT ---
Thanks for the feedback. Good to know the problem I found was the same one you
were seeing.

Keeping open until the patch has been applied to 6.0.x

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 50072] Blank responses

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50072

petr@creactive.cz changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #7 from petr@creactive.cz 2010-10-19 04:14:37 EDT ---
Thank you. Works fine with your patch.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 50072] Blank responses

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50072

--- Comment #6 from Mark Thomas <ma...@apache.org> 2010-10-13 18:02:49 EDT ---
Thanks for the additional traces and analysis. The analysis is particularly
helpful. I tracked the problem down to a long standing issue in the NIO
connector where request lines sent in more that one packet are likely to be
mis-read. The simplest way to reproduce this is to use telnet.

I have applied a fix for this issue to 7.0.x and it will be included in 7.0.4
onwards.

I have proposed a port of the same fix for 6.0.x (patch attached).

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 50072] Blank responses

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50072

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #9 from Mark Thomas <ma...@apache.org> 2010-11-03 15:07:55 UTC ---
Fixed in 6.0.x and will be included in 6.0.30 onwards.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 50072] Blank responses

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50072

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #1 from Mark Thomas <ma...@apache.org> 2010-10-11 06:32:33 EDT ---
There haven't been any similar reports and 6.0.24 was released almost 9 months
ago. Either the application is triggering a rare code-path in Tomcat which is
hitting a bug or the application is sending invalid requests that Tomcat is now
being stricter in how it is handling them.

I tried to read the attached trace in Wireshark but a dump of the text output
from tcpdump is not easily imported. Looking through the text output I see some
oddities (e.g. Host headers in a HTTP 1.0 request) but nothing that jumps out
as obviously malformed.

Please provide a complete tcpdump trace of 5 to 10 requests in pcap format that
demonstrates this issue.

Also, note there is no need to edit the file to obscure any host names, IP
addresses etc. since they are all present in the hex data in the attached file.

You might also like to try running Tomcat with the BIO connector to see if the
problem remains.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 50072] Blank responses

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50072

petr@creactive.cz changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #4 from petr@creactive.cz 2010-10-13 09:10:26 EDT ---
This problem has tomcat 6.0.24 and all next releases. I tested it now with
version 6.0.29 and php on one of our client servers where the problem was
detected before. Problem is with http 1.0 requests from php (fopen,
simplexml_load_file functions) and NIO connector. Same script works fine with
BIO connector. Http 1.1 requests (curl, fsockopen php functions) works fine
with both connectors. I attach bio.log and nio.log tcpdump logs. Top +- 10
requests are from simplexml_load_file and next are curl and fsockopen.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 50072] Blank responses

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50072

--- Comment #12 from Jackie Rosen <ja...@hushmail.com> ---
*** Bug 260998 has been marked as a duplicate of this bug. ***
Seen from the domain http://volichat.com
Page where seen: http://volichat.com/adult-chat-rooms
Marked for reference. Resolved as fixed @bugzilla.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 50072] Blank responses

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50072

--- Comment #2 from petr@creactive.cz 2010-10-13 09:09:24 EDT ---
Created an attachment (id=26168)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26168)
tcpdump log - nio connector

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 50072] Blank responses

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50072

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |NOS@Utel.no

--- Comment #10 from Mark Thomas <ma...@apache.org> 2010-11-05 14:04:35 EDT ---
*** Bug 50224 has been marked as a duplicate of this bug. ***

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 50072] Blank responses

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50072

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |knight@nhn.com

--- Comment #11 from Mark Thomas <ma...@apache.org> 2011-01-04 18:05:36 EST ---
*** Bug 50505 has been marked as a duplicate of this bug. ***

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org