juju2013/goldap — pull request #1 by vanackere (2014-07-23 13:12:36+00:00)
Title: Remove data race between *Conn.Close() and *Conn.reader()

A single channel is now used to signal that the connection was closed.
There is also no need to set the net.Conn field to nil as this was causing a nil pointer dereference in the reader loop.