3 ms·
Imagine for a moment how programs would be different if all polls had timeouts and all sockets were blocking. For a little while, there’d be some unpleasant sta
by osivertsson 10y ago
Imagine for a moment how programs would be different if all polls had timeouts and all sockets were blocking. For a little while, there’d be some unpleasant stalls. But these would not be insurmountable problems. With a little concentration, it’s possible to rearchitect the program with a much more robust design that neither loses events nor requires speculative guesses.
Yes please, I'd like that. The code that ends up on my desk would be easier to understand and refactor.
Instead of a proper fix, the developer changes the socket to nonblocking
Sometimes yes, and sometimes the developer decide to spawn a thread, and now you have lots of problems...
- curried_haskell 10y agon.da nyouow hlotsof probave. . lems