c93419ba57
Motivation: `SslHandler#unwrap` may produce `SslHandshakeCompletionEvent` if it receives `close_notify` alert. This alert indicates that the engine is closed and no more data are expected in the pipeline. However, it fires the event before the last data chunk. As the result, further handlers may loose data if they handle `SslHandshakeCompletionEvent`. This issue was not visible before #11133 because we did not write `close_notify` alert reliably. Modifications: - Add tests to reproduce described behavior; - Move `notifyClosePromise` after fire of the last `decodeOut`; Result: `SslHandshakeCompletionEvent` correctly indicates that the engine is closed and no more data are expected on the pipeline. |
||
---|---|---|
.. | ||
src | ||
pom.xml |