Set the legacy timeout on the request and the connect

It looks like the timeout is set on the socket which means it applies equally to
the request and the connect calls, make the code reflect this behavior