CMIIW, I doubt if it is explicitly needed to close the request's body in handler, as it seems, close of request's body is handled by stdlib upon completion of handler.
Handler, in net/http, is called here: https://github.com/golang/go/blob/master/src/net/http/server.go#L1804 Finish Request: https://github.com/golang/go/blob/master/src/net/http/server.go#L1804 Request's body is closed here: https://github.com/golang/go/blob/master/src/net/http/server.go#L1525 Though, HTTP response's body should be closed explicitly for connection reuse and stuff. On Wednesday, 18 October 2017 01:34:35 UTC+5:30, Lee Armstrong wrote: > > This is 1.9.1 and I had not thought of switching to http2 although do need > to maintain the 1.1 for older clients. > > The closing of the body could explain it though which I thought was > automatic on a return from the handlers? Do I need to explicitly call that > in the handlers?? -- 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 golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.