Duration <http://golang.org/pkg/time/#Duration> // maximum duration before
timing out read of the request
This will timeout even when the connection is busy. What's more needed is a
timeout when the connection is idle. I wonder why there is no such way to
In my case, the client can be uploading a large file to the system, which
can take fairly long. Having a large ReadTimeout will work for large files,
but not so efficient for other smaller uploads.
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
For more options, visit https://groups.google.com/d/optout.