Anyone have a good option for setting a timeout in GHTTP? I have an issue where my the VPN sometimes dies and the GHTTP call just hangs. The GHTTP documentation suggests looking at select, but it blocks on the $ghttp->process(). (And you need to run that before doing get_socket to get the socket handle for select.)
I really don't want to throw a SIG_ALARM, and forking a new process seems like overkill for just a simple timeout. Anyone have other options?