Вопрос

How can I specify timeout for an tls.connect() call? I know there is handshakeTimeout for server, is there something similar for client?

Это было полезно?

Решение

You should be able to call tlssock.setTimeout() which calls the underlying socket.setTimeout(). socket.setTimeout() is the same mechanism that the TLS server uses for the handshakeTimeout.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top