문제

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