commit 82592ef9a3c1d8960a52c5cd95091122ea916924 from: Tim Retout via: Dustin Sallings date: Thu May 18 15:04:23 2017 UTC server: Use net.Conn interface in Process() This allows implementations to pass a crypto/tls Conn, for instance. commit - 2ceb8dcb12846147725997dbe613a37931b5b05c commit + 82592ef9a3c1d8960a52c5cd95091122ea916924 blob - ae293d36c9260416429f7df253e09243ab0e31fc blob + bf5f5bb7935321e8c8849c828f16dcb048661fa7 --- server/server.go +++ server/server.go @@ -147,9 +147,9 @@ func (s *session) dispatchCommand(cmd string, args []s } // Process an NNTP session. -func (s *Server) Process(tc *net.TCPConn) { - defer tc.Close() - c := textproto.NewConn(tc) +func (s *Server) Process(nc net.Conn) { + defer nc.Close() + c := textproto.NewConn(nc) sess := &session{ server: s,