Skip to content

Commit

Permalink
increase timeout to address (Relatively) high CPU use #548
Browse files Browse the repository at this point in the history
  • Loading branch information
Migelo committed Feb 27, 2024
1 parent fa9ef57 commit 31fc0e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/terminal/TerminalServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void TerminalServer::run() {
}

tv.tv_sec = 0;
tv.tv_usec = 10000;
tv.tv_usec = 100000;

const int numFdsSet = select(maxFd + 1, &rfds, NULL, NULL, &tv);
if (numFdsSet < 0 && errno == EINTR) {
Expand Down Expand Up @@ -144,7 +144,7 @@ void TerminalServer::runJumpHost(
maxfd = max(maxfd, serverClientFd);
}
tv.tv_sec = 0;
tv.tv_usec = 10000;
tv.tv_usec = 100000;
select(maxfd + 1, &rfd, NULL, NULL, &tv);

try {
Expand Down Expand Up @@ -282,7 +282,7 @@ void TerminalServer::runTerminal(
maxfd = max(maxfd, serverClientFd);
}
tv.tv_sec = 0;
tv.tv_usec = 10000;
tv.tv_usec = 100000;
select(maxfd + 1, &rfd, NULL, NULL, &tv);

try {
Expand Down

0 comments on commit 31fc0e6

Please sign in to comment.