Re: SSLEngine.unwrap on read-only input ByteBuffer

2022-03-24 Thread Chris Vest
fer is not read-only. > By chance, do you have a simple reproducer handy? > See https://github.com/netty/netty/pull/12213#issuecomment-1077796917 > > Brad > > > > On 3/23/2022 9:54 AM, Chris Vest wrote: > > Hi, > > > > In Netty we've been trying to d

SSLEngine.unwrap on read-only input ByteBuffer

2022-03-23 Thread Chris Vest
Hi, In Netty we've been trying to design some safer APIs, and attempted to make more use of read-only ByteBuffers. We discovered that SSLEngine.unwrap does not like read-only input buffers, even though the input buffers should in theory only be read from. We obviously make sure that the output