fix: reduce select timeval
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user