mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-12 04:27:51 -05:00
term: reduce max number of iterations when trying to drain client
This commit is contained in:
parent
92376eae01
commit
2560e83c54
1 changed files with 1 additions and 1 deletions
|
|
@ -153,7 +153,7 @@ fdm_ptmx(struct fdm *fdm, int fd, int events, void *data)
|
|||
uint8_t buf[24 * 1024];
|
||||
ssize_t count = sizeof(buf);
|
||||
|
||||
const size_t max_iterations = 1024;
|
||||
const size_t max_iterations = 10;
|
||||
|
||||
for (size_t i = 0; i < max_iterations && pollin && count == sizeof(buf); i++) {
|
||||
assert(pollin);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue