Skip to content

Commit

Permalink
switch clientloop poll->ppoll
Browse files Browse the repository at this point in the history
gives better timeout resolution for traffic analysis countermeasures
  • Loading branch information
djmdjm committed Aug 13, 2023
1 parent 1283f67 commit 787b502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clientloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ client_wait_until_can_do_something(struct ssh *ssh, struct pollfd **pfdp,
ssh_packet_get_rekey_timeout(ssh));
}

ret = poll(*pfdp, *npfd_activep, ptimeout_get_ms(&timeout));
ret = ppoll(*pfdp, *npfd_activep, ptimeout_get_tsp(&timeout), NULL);

if (ret == -1) {
/*
Expand Down

0 comments on commit 787b502

Please sign in to comment.