[jsr369-experts] Re: Upgrade is done?

From: Shing Wai Chan <shing.wai.chan_at_oracle.com>
Date: Wed, 11 Feb 2015 13:10:04 -0800

 From javadoc of #destroy, we have
     It is called when the client is disconnected.
There is no need to start async for the case of upgrade.
NIO will work for upgrade.

Shing Wai Chan

On 2/10/15, 9:08 PM, Greg Wilkins wrote:
> All,
> Jetty currently doesn't implement the standard upgrade mechanism and
> I'm currently looking to fix that. The spec says:
> When the upgrade processing is done, HttpUpgradeHandler.destroy
> will be invoked.
> What does "is done" mean? Does it mean both input and output
> streams have been closed?
> I also note that the spec says async IO can be used, so I assume that
> means that startAsync must be called before returning after the
> request.upgrade call?
> thanks
> --
> Greg Wilkins <gregw_at_intalio.com <mailto:gregw_at_intalio.com>> @
> Webtide - /an Intalio subsidiary/
> http://eclipse.org/jetty HTTP, SPDY, Websocket server and client that
> scales
> http://www.webtide.com advice and support for jetty and cometd.