Hacker News new | ask | show | jobs
by throwaway984393 1604 days ago
I went and looked at the code (it's linked in the article). You absolutely can put a timeout around a case/switch statement. There's like 5 different ways to do it. And the code calling network syscalls can also have timeouts, obviously; otherwise nobody would ever be able to time out any blocked network operation. This is all network programming 101.
1 comments

If it's that easy, I'm sure they'd accept your pull request.