tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 4223] New: - AJP13 connectors InputStream newer returns -1
Date Wed, 17 Oct 2001 07:25:22 GMT
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=4223>.
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=4223

AJP13 connectors InputStream newer returns -1

           Summary: AJP13 connectors InputStream newer returns -1
           Product: Tomcat 4
           Version: 4.0.1 Final
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Connectors
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: pvainio@sci.fi


When reading from InputStream got from HttpServletRequest.getInputStream()
with read(byte[]) it newer returns -1;

Following code causes infinite loop via ajp13 connector but works fine with
Http1.1 connector:

	InputStream in = req.getInputStream();
	while ((count = in.read(buf)) != -1) {
	    total += count;
	}

Mime
View raw message