term: reduce max number of iterations when trying to drain client

This commit is contained in:
Daniel Eklöf 2020-02-05 20:24:46 +01:00
parent 92376eae01
commit 2560e83c54
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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);