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 2003/01/30 19:09:49 UTC

DO NOT REPLY [Bug 10423] - Premature packet header end

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10423

Premature packet header end

morgan.pyne@eur.sas.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|Minor                       |Normal
            Version|4.0.3 Final                 |4.1.12



------- Additional Comments From morgan.pyne@eur.sas.com  2003-01-30 18:09 -------
I have a similar problem...

Apache 1.3.26, mod_webapp (v4.1.12, connectors source bundle) on a HP-UX 11 
machine, and Tomcat 4.1.12 on a separate HP-UX 11 box. I have 2 virtual servers 
configured.

I am constantly seeing the following errors in the apache_log.YYYY-MM-DD.txt 
logfile from Tomcat:

2003-01-30 18:45:28 [org.apache.catalina.connector.warp.WarpConnection] 
Exception on socket
java.io.IOException: Premature packet header end
        at org.apache.catalina.connector.warp.WarpConnection.recv(Unknown 
Source)
        at org.apache.catalina.connector.warp.WarpRequestHandler.handle(Unknown 
Source)
        at org.apache.catalina.connector.warp.WarpConnection.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:536)

No other logs (Apache or Tomcat) contain any further errors.

Apart from these errors, the deployed servlets *appears* to be working ok. 
I am as yet unable to upgrade to Tomcat 4.1.18 and the latest mod_webapp so I 
cannot confirm yet if this error persists in these versions. I will try to do 
so as soon as possible.

Trawling the net seemed to find other people with a similar problem but nobody 
had any useful suggestions or explanations. Looking up the source code where 
the exception is thrown...:


    public void recv(WarpPacket packet)
    throws IOException {
        int t=this.input.read();
        int l1=this.input.read();
        int l2=this.input.read();

        if ((t|l1|l2)==-1)
            throw new IOException("Premature packet header end");

...I see that a read() is failing when attempting to grab the headers for the 
incoming Warp packets. This makes me a little worried that the error is perhaps 
not benign and should be investigated. (e.g. is mod_webapp sending garbage in 
some circumstances ?)  The only explanation I found offered for this error to 
be legitimately thrown is when a user cancels a page loading before completion, 
but the frequency of the errors I am seeing is way to high for that to be the 
case.

If I can provide additional information or perform any tests to help isolate 
this problem please let me know - I'm not sure how to pursue a fix myself.

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