moquette icon indicating copy to clipboard operation
moquette copied to clipboard

New configuration parameter : setting the HandshakeTimeout on SslHandler

Open dsoulayrol opened this issue 4 years ago • 1 comments

Hi,

I am working with embedded devices which are very limited in resources, and the server certificate verification takes a very long time. The server closes the connection after 10 seconds, far before the client has completed its computation to ask for the key exchange.

This timeout is set by io.netty.handler.ssl.SslHandler. This handler is created in NewNettyAcceptor#createSslHandler. (I am using version 0.12.1, but I see nothing changed in master). When I call SslHandler#setHandshakeTimeoutMillis here, my problem is solved.

So I'd like to have the capability to provide this timeout value as a property for moquette. I believe it would be an interesting feature because MQTT is easily used on embedded devices, and SSL support is somewhat heavy, so my problem could be seen elsewhere.

I am ready to create a Pull Request if necessary, but I would be happy to hear your comments first on the subject.

dsoulayrol avatar Jul 23 '20 16:07 dsoulayrol

Hi.

I have to freeze and package a product in a few days which needs this feature. I need to know if I have a chance to see this request soon merged so as to rely on the main repository of moquette, or if I have to generate my own version. Could someone post a comment about this?

Thanks.

dsoulayrol avatar Feb 19 '21 10:02 dsoulayrol