Stephane Landelle
Stephane Landelle

Reputation: 7038

Netty 3 HTTPS client hangs forever

I have a Netty 3 client over HTTPS.

I can't puzzle out why it's not working and just hangs until timeout. It works perfectly fine over HTTP (remove the SSL handler from the pipeline and change port from 443 to 80).

Here's a gist (in scala): https://gist.github.com/4396611

What am I doing wrong?

I've tested with Netty from 3.5.9 to 3.6.0. My JDK is 1.6.0_37 on OS X.

Regards,

Stéphane

Upvotes: 1

Views: 650

Answers (1)

Norman Maurer
Norman Maurer

Reputation: 23567

You missed to issue the handshake once the channel is connected. The easiest way is to use setIssueHandshake on the SslHandler before add it to the pipeline.

http://static.netty.io/3.6/api/org/jboss/netty/handler/ssl/SslHandler.html#setIssueHandshake(boolean)

Upvotes: 1

Related Questions