added support for write timeout on the request stream