On 23/01/2014 15:01, Rémy Maucherat wrote:
> 2014/1/23 Mark Thomas <ma...@apache.org>
> 
>>> - Call onClose before actually closing anything (sending a close message
>> closes the endpoint).
>>
>> -1 (veto) for a specification violation
>>
>> Section 2.1.5 requires that:
>> "the implementation must attempt to send the websocket close frame prior
>> to calling the onClose() method of the websocket endpoint."
>>
> 
> Ok, but then onClose has the endpoint already closed, and it cannot do
> anything (like send messages).

I'd need to go back and check the archives but the I think the
expectation from the EG was that onClose() would be used to clean up
resources rather than anything else.

It is always possible that I have misunderstood the intention of the
spec here but it looks to be pretty clear.

Mark

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

Reply via email to