WIP: use poll() instead of select() to avoid 1024 (LP: #1307773)