netty5/handler/src/main/java/io/netty
Trustin Lee c3e5604f59 Do not throw IndexOutOfBoundsException on an invalid SSL record
Motivation:

When an SSL record contains an invalid extension data, SniHandler
currently throws an IndexOutOfBoundsException, which is not optimal.

Modifications:

- Do strict index range checks

Result:

No more unnecessary instantiation of exceptions and their stack traces
2016-01-29 08:00:46 +01:00
..
handler Do not throw IndexOutOfBoundsException on an invalid SSL record 2016-01-29 08:00:46 +01:00