net/http: request canceled while waiting for connection

728 views
Skip to first unread message

DM

unread,
Jul 12, 2016, 6:15:48 AM7/12/16
to golang-nuts
Hi

We making some http PUT calls to a web server using net/http. Some time in the log we are seeing the below errors:-

{"level":"error","message":"Put http://blitz:2196/cache/api/v1/buckets/styloko/entities/product-xlarge-multi-sku-de898wa73oooindfasread tcp 172.16.84.112:2196: use of closed network connection","stackTraces":["/var/lib/jenkins/jobs/CI_styloko_pkg_creation/workspace/styloko/src/amenities/products/common/cache_manager.go(295)","/var/lib/jenkins/jobs/CI_styloko_pkg_creation/workspace/styloko/src/amenities/products/get/search/exactquery/node_response.go(127)","/usr/local/go/src/runtime/asm_amd64.s(2232)"],"timestamp":"2016-07-11T19:30:29+05:30"}

{"level":"error","message":"Put http://blitz:2196/cache/api/v1/buckets/styloko/entities/product-xlarge-multi-sku-mi162bg58vblindfasnet/http: request canceled while waiting for connection","stackTraces":["/var/lib/jenkins/jobs/CI_styloko_pkg_creation/workspace/styloko/src/amenities/products/common/cache_manager.go(295)","/var/lib/jenkins/jobs/CI_styloko_pkg_creation/workspace/styloko/src/amenities/products/get/search/exactquery/node_response.go(127)","/usr/local/go/src/runtime/asm_amd64.s(2232)"],"timestamp":"2016-07-11T19:30:32+05:30"}

Can some one please let me know when does the error "Use of closed network connection", "request canceled while waiting for connection" can come?

I am using go 1.5 on Debian 8 64 Bit.

Thanks,
D

Constantin Konstantinidis

unread,
Jul 12, 2016, 10:24:29 AM7/12/16
to golang-nuts
Hello,

A simple search on https://github.com/golang/go/ will display various reasons. Is there a good reason to avoid upgrading to 1.6.2 and possibly 1.7. Many issues were treated in the meantime.

Regards,
Reply all
Reply to author
Forward
0 new messages