Skip to content

net/http: Timeouts are kicking in on established connections #8465

Closed
@gopherbot

Description

@gopherbot

by camilo.aguilar:

I have a http client that used to work fine in Go 1.2.1 and now it does not in Go 1.3.
Basically the timeout is always kicking in the middle of a transfer. For example, when
downloading or uploading a big file. 

I also tried using the new Timeout property in http.Client instead of doing
conn.SetDeadline and I'm having the same results.

What does 'go version' print?
go version go1.3 darwin/amd64

What steps reproduce the problem?
Just use http.Client to get a big file from somewhere, the total transfer time should
take more than the time defined in Timeout.

What happened?
Timeout kicks in on an established connection

What should have happened instead?
Timeout should not kick in at all if the connection is in established state

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions