diff options
author | June McEnroe <june@causal.agency> | 2019-10-31 17:51:27 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-10-31 17:51:27 -0400 |
commit | 0e4973936b8d0884f7ab4bc3a2c3e68aba371e46 (patch) | |
tree | 68fba322c3194f73ef11d548a508f5a06c5cd81e /state.c | |
parent | Clear passwords from memory with memset_s (diff) | |
download | pounce-0e4973936b8d0884f7ab4bc3a2c3e68aba371e46.tar.gz pounce-0e4973936b8d0884f7ab4bc3a2c3e68aba371e46.zip |
Iterator over pollfds in reverse
This has two advantages: 1. When removing a client, we don't need to break the loop, since the swap-remove will replace the current pollfd with one we've already handled and we can safely move on to the next (previous) one. 2. If a new client connects for the same consumer (for example if the previous one is going to time out), it will start consuming messages for that consumer, rather than them being sent to the old client.
Diffstat (limited to 'state.c')
0 files changed, 0 insertions, 0 deletions