Automated test for connection timeouts (fails on PHP 5.3)