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 14059] - HTP Response does not respond correctly to flush()
Date Fri, 01 Nov 2002 12:49:37 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=14059>.
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=14059

HTP Response does not respond correctly to flush()

jpettens@rochester.rr.com changed:

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



------- Additional Comments From jpettens@rochester.rr.com  2002-11-01 12:49 -------
I have gone back and created a java client that reads the inputStream response a
char at a time:

        logger.debug( "opening buffered reader to read response" );

        InputStreamReader is = new InputStreamReader(
URLConnection.getInputStream() );

        //  Note: should read response to make sure no error.
        String       str;
        int          i;
        StringBuffer sb = new StringBuffer();

        while ( ( i = is.read() ) != -1 ) {

            char c = (char)i;
            logger.debug( "Have a char: " + c );
            sb.append( c );
        }

        String s = sb.toString();
        logger.debug( "String returned is: " + s );

        if ( !s.startsWith( "OK" ) ) {
            throw new RuntimeException( "Server returned: " + s );
        }

        is.close();
    }

I pointed it at the Servlet test code on Tc4.0.6
Results:


2002-11-01 12:41:16,884 [GMT] DEBUG 10    TestTestService [main]  - Connecting
to
http://mocha.ko.kodak.com:8080/eFUSE/servlet/controller/Test?action=ReadRequest&readQueue=TestingMe
2002-11-01 12:41:16,934 [GMT] DEBUG 60    TestTestService [main]  - opening
buffered reader to read response
2002-11-01 12:41:16,944 [GMT] DEBUG 70    TestTestService [main]  - Have a char:O
2002-11-01 12:41:16,944 [GMT] DEBUG 70    TestTestService [main]  - Have a char:K
2002-11-01 12:41:16,954 [GMT] DEBUG 80    TestTestService [main]  - Have a char: 
2002-11-01 12:41:16,954 [GMT] DEBUG 80    TestTestService [main]  - Have a char: 
2002-11-01 12:41:16,954 [GMT] DEBUG 80    TestTestService [main]  - String
returned is: OK

TC 4.1.12 Results:


2002-11-01 12:38:48,050 [GMT] DEBUG 10    TestTestService [main]  - Connecting
to
http://arabica.ko.kodak.com:8080/eFUSE/servlet/controller/Test?action=ReadRequest&readQueue=TestingMe
2002-11-01 12:38:48,100 [GMT] DEBUG 60    TestTestService [main]  - opening
buffered reader to read response
2002-11-01 12:38:54,119 [GMT] DEBUG 6079  TestTestService [main]  - Have a char:O
2002-11-01 12:38:54,119 [GMT] DEBUG 6079  TestTestService [main]  - Have a char:K
2002-11-01 12:38:54,119 [GMT] DEBUG 6079  TestTestService [main]  - Have a char: 
2002-11-01 12:38:54,119 [GMT] DEBUG 6079  TestTestService [main]  - Have a char: 
2002-11-01 12:38:54,119 [GMT] DEBUG 6079  TestTestService [main]  - String
returned is: OK

Note the times.  Each TC instance was deployed "out of the box", however is
there a directive in the server.xml that would account for this behavior difference?

Thank you for your time.

-j.p.

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


Mime
View raw message