18.02.2021, 08:58
It does work but this way you can process only one client at a time. But it should not be a problem a client sends a small amount of data and disconnects after that. Otherwise you should use copas to handle multiple clients in parallel.