DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38464>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38464

           Summary: Data corruption when using APR
           Product: Tomcat 5
           Version: 5.5.14
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Connector:HTTP
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


While fiddeling around WRT Bug 37788 I did some more intensive testing of the
APR-Connector and noticed that sometimes the transmitted data is corrupted or
the transmission stalls prematurely.
Two cases where I can reproduce this reliabally:
1. A listing of a directory containing ~ 2500 files will never be completely
shown in the broser - only ~ 500 files are shown (the exact number varies).
2. When trying to download the attached binary file (filled with random bytes)
using Firefox only part of the file will be transmitted. Doing the same with
wget results in the following:
$ LC_ALL=C http_proxy="" wget http://192.168.42.4:8080/t2.bin
--16:21:31--  http://192.168.42.4:8080/t2.bin
           => `t2.bin'
Connecting to 192.168.42.4:8080... connected.
HTTP request sent, awaiting response... 200 OK
Length: 38,144 (37K) [application/octet-stream]

77% [==========================================================>               
  ] 29,656        --.--K/s    ETA 00:05

16:21:51 (1.45 KB/s) - Connection closed at byte 29656. Retrying.

--16:21:52--  http://192.168.42.4:8080/t2.bin
  (try: 2) => `t2.bin'
Connecting to 192.168.42.4:8080... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 38,144 (37K), 8,488 (8.3K) remaining [application/octet-stream]

100%[+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++=================>]
38,144        --.--K/s

16:21:52 (33.87 MB/s) - `t2.bin' saved [38144/38144]

The downloaded file differs from the file on the server.
Wether useSendfile is set to false or not on the Connector doesn't make a
difference.

Neither of these problems shows up when using the pure Java Connector.

System spec:
Gentoo Linux with kernel 2.6.15-gentoo-r1
Sun JDK 1.5.0.06
APR 1.2.2
tomcat-native-1.1.1 from the 5.5.15 distribution
gcc 3.4.4
Stock Tomcat 5.5.15 (5.5.15 should be added to bugzilla's version field BTW)

Since I thought there might be some oddity with my Gentoo system, I installed
Kubuntu breezy badger (5.10) with kernel 2.6.12-10-386 and gcc 4.01 on another
machine and could reproduce both problems there.
I've also tested the file download (case 2.) on a Windows machine with Tomcat
5.5.15 - there ist works flawlessly.

BTW: although I mentioned Bug 37788 this issue is completely unrelated since I
did not use any modified components but the stock Tomcat 5.5.15.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to