bitly/nsq — pull request #161 by mreiferson (2013-04-14 20:45:26+00:00)
Title: go-nsq: connection pool is not goroutine safe

Reader.nsqConnections is a map holding all connections to nsqd.

In lookupdLoop goroutine, it will check and fix all the non-live connections involving inserting into *nsqConnections*.

In stopFinishLoop()，it will delete the closed connection in *nsqConnections*.

So, there exists race condition. *nsqConnections* map structure can be damaged.