If the server is down it fails immediately.  If it is a slow response it will wait until the connection is closed.