Bugs item #740604, was opened at 2003-05-20 17:05
Message generated for change (Comment added) made by wesgere
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=740604&group_id=22866

Category: None
Group: v3.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Steve Stair (sstair)
Assigned to: Nobody/Anonymous (nobody)
Summary: Response buffering bug

Initial Comment:
I'm seeing some unexpected behaviour using Jboss 
3.2.0 both with tomcat and with jetty.

I've created a servlet that

1) writes some text to the ServletOutputStream,
2) flushes
3) sleeps a bit
4) does steps 1-3 a few more times

All of the output is coming to the browser at once, after 
the total time from all of the sleep() calls has elapsed.

I tried using response.flushBuffer(), same result.
I then tried writing 1000 characters to the output stream, 
to cause the buffer to overflow, and now it works.

But here is the wierd part: All of the print/flush/sleep 
steps that come BEFORE writing the 1000 chars all get 
sent to the browser at the same time, but AFTER the 
1000 chars get sent, every subsequent flush works like 
it is supposed to.

It is as if flush() doesn't work until after some 
initialization which is performed in the code that gets run 
when the buffer overflows.

Attached is the test servlet I created to demonstrate. 

----------------------------------------------------------------------

Comment By: Wes Gere (wesgere)
Date: 2004-03-23 22:08

Message:
Logged In: YES 
user_id=690357

I think the buffering behavior you're seeing is on the
client side. When I run your servlet in IE, it behaves
exactly as you said. When I run it with Mozilla, it behaves
the way you want: ONE!, then a two second delay, then TWO!!,
and so forth.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=740604&group_id=22866


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to