News for hackers. Stuff that matters.
Re:Retrospective and technical details on the recent Firefox... by throwaway984393 on Wednesday February 02, 2022 @09:09AM (#30177710)
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.
Re:Retrospective and technical details on the recent Firefox... by acdha on Wednesday February 02, 2022 @10:28AM (#30178897)
If it's that easy, I'm sure they'd accept your pull request.