質問

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