dev@grizzly.java.net

Re: grizzly-sendfile update

From: Oleksiy Stashok <Oleksiy.Stashok_at_Sun.COM>
Date: Tue, 25 Aug 2009 12:35:26 +0200

Hi Igor,

> In the last week or so I finally had time to get some work done on
> grizzly-sendfile. I now have everything but one feature implemented.
> The last missing piece is SSL support.
>
> JFA pointed me to some code within grizzly that deals with SSL.
> After having a look at this code, I'm having two issues:
>
> #1 - when I try to obtain SSLEngine in my async filter via
> "((WorkerThread)Thread.currentThread()).getSSLEngine();" it returns
> null even for SSL requests. Is this expected? Should I be retrieving
> the SSLEngine in some other way?
Is your AsyncFilter part of protocol chain, or it's some web container
related Filter?
It could be interesting to take a look at sources, can you pls. send
URL, where I can find them?

> #2 - since grizzly-sendfile deregisters the request from the main
> selector, I'm concerned that the ssl engine will be closed/recycled
> by grizzly. This might turn out not to be true, but I can't verify
> it due to #1
It shouldn't.


> I have to say that I'm quite surprised about the complexities
> involved in implementing SSL with NIO. Oh well :-).
Completely agree.

WBR,
Alexey.
>
> thanks for your help.
>
> cheers,
> Igor
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: dev-help_at_grizzly.dev.java.net
>