grpc-java/netty
Eric Anderson c48610b890 netty: Eagerly create SslContext
Creating the SslContext can throw, generally due to broken ALPN. We want
that to propagate to the caller of build(), instead of within the
channel where it could easily cause hangs.

We still delay creation until actual build() time, since TLS is not
guaranteed to work and the application may be configuring plaintext or
similar later before calling build() where SslContext is unnecessary.

The only externally-visible change should be the exception handling.
I'd add a test, but the things throwing are static and trying to inject
them would be pretty messy.

Fixes #2599
2017-06-06 12:00:01 -07:00
..
src netty: Eagerly create SslContext 2017-06-06 12:00:01 -07:00
third_party/netty Upgrade to netty and netty-tcnative 2017-05-15 10:57:43 -07:00
build.gradle all: update to latest version of errorprone 2017-03-22 22:09:04 -07:00