You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2008/08/22 01:15:11 UTC

DO NOT REPLY [Bug 45154] Support sendfile with NIO and SSL

https://issues.apache.org/bugzilla/show_bug.cgi?id=45154


Filip Hanik <fh...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




--- Comment #1 from Filip Hanik <fh...@apache.org>  2008-08-21 16:15:10 PST ---

Hi Mr McClain,
the benefit of sendfile is that you can transfer data from one channel to
another without reading the data into the java heap.
this is not possible with SSL, since you have to do the encryption in memory,
so the effort is wasted, and doing it this way, you will be wasting poller CPU
cycles on SSL encryption, potentially slowing down the system's reaction time
to IO events.

so the transferTo is supposed to read from the one buffer to another without
reading data into memory (the java heap), this effort doesn't work with NIO
ssl.

what would have to be done here, is that we moved the send file to a separate
thread, but it still wouldn't be a true send file.

Filip


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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