Bug 6621 - mod_webapp hangs when transmitting binary (eg. image) files
Summary: mod_webapp hangs when transmitting binary (eg. image) files
Status: RESOLVED DUPLICATE of bug 3509
Alias: None
Product: Tomcat 4
Classification: Unclassified
Component: Connector:Webapp (show other bugs)
Version: 4.0.3 Final
Hardware: PC All
: P3 critical with 11 votes (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-21 18:30 UTC by James Lee
Modified: 2005-03-20 17:06 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Lee 2002-02-21 18:30:24 UTC
Running Apache 1.3.22, Tomcat 4.0.2, Win2K SP2

When I first access the page, It loads fairly slowly, and not all images show 
up all the time.  If I click refresh, or if somebody else goes to that page 
before my page is finished, whoever hits the site second gets: 

WebApp: Error 500
(File: pr_warp.c Line: 438) 
Invalid packet 16 

Both Apache and Tomcat are still running at this point.  All subsequent hits 
return the same error until Both Apache and Tomcat are restarted.

Here are the error logs:

somehost.com-error.log
[Thu Feb 21 11:15:11 2002] [error] Invalid packet 16
[Thu Feb 21 11:15:11 2002] [error] Communitcation interrupted
[Thu Feb 21 11:15:11 2002] [error] Communitcation interrupted
[Thu Feb 21 11:15:17 2002] [error] Invalid packet 16
[Thu Feb 21 11:15:17 2002] [error] Communitcation interrupted
[Thu Feb 21 11:15:17 2002] [error] Communitcation interrupted

apache_log.2002-02-21.txt
2002-02-21 11:17:35 WarpHost[somehost.com]: Mapping request for Host
2002-02-21 11:17:35 [org.apache.catalina.connector.warp.WarpConnection] 
Exception on socket
java.net.SocketException: Connection aborted by peer: socket write error
	at java.net.SocketOutputStream.socketWrite(Native Method)
	at java.net.SocketOutputStream.write(SocketOutputStream.java:65)
	at org.apache.catalina.connector.warp.WarpConnection.send
(WarpConnection.java:219)
	at org.apache.catalina.connector.warp.WarpResponse$Stream.close
(WarpResponse.java:301)
	at org.apache.catalina.connector.warp.WarpResponse$Stream.finish
(WarpResponse.java:311)
	at org.apache.catalina.connector.warp.WarpResponse.finishResponse
(WarpResponse.java:152)
	at org.apache.catalina.connector.warp.WarpRequestHandler.handle
(WarpRequestHandler.java:222)
	at org.apache.catalina.connector.warp.WarpConnection.run
(WarpConnection.java:194)
	at java.lang.Thread.run(Thread.java:484)



This sometimes causes Apache to crash, generating errors:

 [error] Connection "conn" cannot connect
 [error] Cannot open connection conn
 [error] Cannot shutdown "conn"
 [error] Cannot shutdown "conn"


Is this related to bug 3509 or 4793?
Comment 1 Andrzej Taramina 2002-02-25 15:28:00 UTC
This bug only seems to occur only on a Windows platform.  The page hangs during the transmission of 
binary items (ie. GIF images) from Tomcat to Apache across the WARP connector.

I've tested it 
with the latest daily snapshots of apr and mod_webapp on a Win2K box as of Feb 24/02 and it's still 
broken.

You can easily reproduce the problem (on a Windows box) by trying to access the 
/examples/jsp/index.html file that is included in the Tomcat examples directory (through 
Apache and the warp connector) .

Versions used to reproduce this error:

Tomcat: 4.0.2 
final, Windows binary distribution.
Apache: 1.3.23 final, Windows binary 
distribution.
mod_webapp/apr: Built from source, daily snapshot as of Feb 
23.

....Andrzej (andrzej@chaeron.com)
Comment 2 Pier Fumagalli 2002-04-29 12:36:30 UTC

*** This bug has been marked as a duplicate of 3509 ***
Comment 3 Colin Maroney 2002-05-23 20:00:02 UTC
I get this same error, except it says Invalid Packet 6, not 16
Also, it only seems to happen on small (<15k) gifs (haven't tried other types 
of data, but larger gifs, i have no problem.)
Comment 4 Pier Fumagalli 2002-05-24 10:41:05 UTC
Pointless to reply on a bug marked duplicate of something else, which is 
clearly not going to be fixed anytime soon.