ispdy: introduce checkSocket method
ispdy: change dispatch_async to sync in connect