Issue Details (XML | Word | Printable)

Key: GRIZZLY_SENDFILE-3
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Igor Minar
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
grizzly-sendfile

Reset response buffer before sending file

Created: 10/May/09 07:25 PM   Updated: 10/May/09 07:25 PM
Component/s: grizzly-sendfile core
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Tags:


 Description  « Hide

If the application intentionally or unintentionally writes any bytes into the response buffer these bytes will be mixed with the contents of the file to be send. This is due to grizzly not providing a working api that would prevent the response buffer to be flushed into the SocketChannel.

An RFE was filed against grizzly as grizzly issue #336.

Two known frameworks that write bytes into the response buffer when not expected: Ruby On Rails (in some situations) and non-xml based JSP

Once a grizzly API exists, it should be called from the SendfileFilter.



There are no comments yet on this issue.