cockroachdb / cockroach-go

Packages for go clients.
Apache License 2.0
160 stars 70 forks source link

Read body to reuse TCP connection #89

Closed yashgandhi-32 closed 4 years ago

yashgandhi-32 commented 4 years ago

As per docs

// HTTP client gurantee that body is always
// no nil. The default HTTP client's Transport may not
// reuse "keep-alive" TCP connections if the Body is
// not read to completion and closed.

To ensure http.Client connection reuse

cockroach-teamcity commented 4 years ago

This change is Reviewable