Open nilshenrich opened 1 week ago
There is no CPU load and the memory usage doesn't grow
The test execution gets stuck in TlsClient::start method
The test execution gets stuck in TlsClient::start method
Stuck at TlsClient::connectionInit method
The test execution gets stuck in TlsClient::start method
Stuck at TlsClient::connectionInit method
Stuck at TLS handshake: SSL_connect
Possible solution: timeout to don't get stuck infinitely. ChatGPT generated solution:
struct timeval timeout;
timeout.tv_sec = 5; // Timeout in seconds
timeout.tv_usec = 0;
setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO, &timeout, sizeof(timeout));
setsockopt(sock, SOL_SOCKET, SO_SNDTIMEO, &timeout, sizeof(timeout));
Possible solution: timeout to don't get stuck infinitely. ChatGPT generated solution:
struct timeval timeout; timeout.tv_sec = 5; // Timeout in seconds timeout.tv_usec = 0; setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO, &timeout, sizeof(timeout)); setsockopt(sock, SOL_SOCKET, SO_SNDTIMEO, &timeout, sizeof(timeout));
No, SO_RCVTIMEO and SO_SNDTIMEO just define the timeout for sending/receiving data on TCP socket
Solution could be:
In some gtest executions, the runtime gets stuck right after starting TLS server, see: