fix: reduce select timeval

This commit is contained in:
2026-05-13 11:36:47 -03:00
parent 3de64df22b
commit d8ddcd83ee
+1 -1
View File
@@ -366,7 +366,7 @@ void TinyMITMProxy::handleClient(SOCKET clientSocket)
FD_SET(clientGuard, &r_fds); FD_SET(clientGuard, &r_fds);
FD_SET(remoteGuard, &r_fds); FD_SET(remoteGuard, &r_fds);
struct timeval tv{0, 50000}; struct timeval tv{0, 1000};
bool hasBuffered = (wolfSSL_pending(clientSSL.get()) > 0 || wolfSSL_pending(remoteSSL.get()) > 0); bool hasBuffered = (wolfSSL_pending(clientSSL.get()) > 0 || wolfSSL_pending(remoteSSL.get()) > 0);
if (!hasBuffered) if (!hasBuffered)