aspose file tools
The moose likes Servlets and the fly likes Buffer size Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Buffer size" Watch "Buffer size" New topic
Author

Buffer size

Celina Joseph
Greenhorn

Joined: Aug 23, 2001
Posts: 24
Hi everybody,
I have a servlet. Its buffer size (I used the API - getBufferSize to get the buffer size of the response stream )is 1024 KB.
I filled it up with data more than 1024KB and it still does not give any error (I was expecting some buffer overflow errors) and displays the data properly on the browser.
Is it normal ?
Shubhrajit Chatterjee
Ranch Hand

Joined: Aug 23, 2001
Posts: 356
Buffer holds the data temporarily before it is flushed to the ouputstream ( IN this case the browser) .. so when you have more than 1024 KB of data, some data is sent to the browser...
This is perfectly normal behavior


Shubhrajit
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Buffer size
 
Similar Threads
Buffer Size question
IllegalStateException
JSP buffer size issue
How to redefine internal buffer size?
inflating UTF-8 ant Latin-1 compressed text