RFR [9] 8157045: NPE during websocket communication with wss
8157045 [1] is blocking folks doing test development for WebSockets. I would like to push this “temporary” change, to unblock them, until we can refactor some of this area to fix what appears to be a more significant issue ( readImpl(ByteBuffer) can read bytes into a different ByteBuffer, but has no way of communicating that to the caller ). I added asserts to catch this, for now. http://cr.openjdk.java.net/~chegar/8157045/ -Chris. [1] https://bugs.openjdk.java.net/browse/JDK-8157045
Re: RFR JDK-8157273: Simplify outgoing messages queueing policy in WebSocket API
> On 14 Jun 2016, at 17:24, Simone Bordet wrote: > >> ... > > However, you still want to use the CFs for exception reporting. Of course. We should not introduce a model that is at odds with how exceptions are handled in this API. How about: 1) Leave the sendXXX methods as they are, no change from what is in jdk9/dev now. 2) Add, and specify, a default auto-pong mechanism. Leaving onPing as effectively a notification of a received ping message with access to its data, if any. No action, from user code, is required to reply to received pings, the implementation will do the right thing. Any errors encountered in the auto-pong mechanism can be notified through onError. -Chris.
Re: RFR [9] 8157045: NPE during websocket communication with wss
Looks good! > On 15 Jun 2016, at 13:50, Chris Hegarty wrote: > > 8157045 [1] is blocking folks doing test development for WebSockets. I would > like to push this “temporary” change, to unblock them, until we can refactor > some > of this area to fix what appears to be a more significant issue ( > readImpl(ByteBuffer) > can read bytes into a different ByteBuffer, but has no way of communicating > that > to the caller ). I added asserts to catch this, for now. > > http://cr.openjdk.java.net/~chegar/8157045/ > > -Chris. > > [1] https://bugs.openjdk.java.net/browse/JDK-8157045 >
Re: RFR [9] 8157045: NPE during websocket communication with wss
Chris That's unfortunate as that API is only used by websocket. Otherwise the problem would have been seen before now. This temporary change looks fine and I will look into the broader problem Michael. On 15/06/2016, 13:50, Chris Hegarty wrote: 8157045 [1] is blocking folks doing test development for WebSockets. I would like to push this “temporary” change, to unblock them, until we can refactor some of this area to fix what appears to be a more significant issue ( readImpl(ByteBuffer) can read bytes into a different ByteBuffer, but has no way of communicating that to the caller ). I added asserts to catch this, for now. http://cr.openjdk.java.net/~chegar/8157045/ -Chris. [1] https://bugs.openjdk.java.net/browse/JDK-8157045