timeout fix

I'm not sure about the way we get the configured timeout into the HTTP transport. Is there a better way?

Also, I'm not sure how we could test this.
Good catch.