From fab956f476233d70cc06ac79936d793dd579090f Mon Sep 17 00:00:00 2001 From: Traun Leyden Date: Fri, 25 Apr 2014 09:48:39 -0700 Subject: [PATCH] Fixes #17 add some docs re client re-use --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 3adab28..6d0dbff 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,8 @@ if err != nil { defer resp.Body.Close() ``` +*Note:* you will want to re-use a single client object rather than creating one for each request, otherwise you will end up [leaking connections](https://code.google.com/p/go/issues/detail?id=4049#c3). + ### Reference Docs For API docs see [godoc](http://godoc.org/github.com/mreiferson/go-httpclient).