title: golang1.4 http server keep idle connection
body: <p>Is there a way to keep idle connection open after a specified timeout at the server side?</p>
  
  <p>I have a http server implemented using golang1.4 and an API will respond after 10 seconds. While I set <code>MaxIdleConnsPerHost</code> at the client (using golang1.4), I still get the <code>read tcp xx.xx.xx.xx:xx: use of closed network connection</code>. I think it may be caused by server closing the idle connection.</p>
  
  <p>I found <a href="https://stackoverflow.com/questions/31385487/golang-http-having-use-of-closed-network-connection-error">GOLANG, HTTP having “use of closed network connection” error</a> and <a href="https://groups.google.com/forum/#!topic/golang-nuts/C70r06L8Qr4" rel="nofollow noreferrer">http.Server: timeout for idle connections only?</a>, but they didn't help.</p>