fix spdy connection timeout issue

(cherry picked from commit 9cc440480a3a4ba9231ff8e98e6b5ca35254bfb3)
Testcase for spdy connection socket timeout.

(cherry picked from commit 3aa708978d83c272e2a24348dfdd7d6695c3d27b)