Retry if http returns EOF.

EOF indicates that the socket was closed unexpectedly and we need to create a
new http connection.