Commit Graph
2 Commits
Author SHA1 Message Date
Brian Foshee 025459f901 Make ServerConn safe for concurrent use
ServerConn's textproto.Conn is safe for concurrent access. This adds
calls to StartResponse() and EndResponse() to put that to use wherever
Cmd() is called.
https://golang.org/pkg/net/textproto/#Conn.Cmd

Additionally, this adds a sync.Mutex on ServerConn to provide
concurrency protection for data commands such as STOR and RETR that need
to run through synchronous steps.
2016-03-03 14:30:28 -05:00
Brian Foshee 6b13969ac9 Add Go 1.6 test target and bump 1.5 to 1.5.3 2016-02-29 15:44:32 -05:00