veita/jaffre

Zero bytes SSLEngine read with JDK 11

Opened this issue · 0 comments

veita commented

JDK 11 changed behaviour of the SSLEngine#unwrap method which could result in zero bytes reads. As a result SSLUtil#read may return 0 which leads to errors.

return l_iBytesAfter - l_iBytesBefore;