udp: Add basic logging and more comments

This commit is contained in:
Justin Li
2015-02-20 14:08:46 -05:00
parent d3d35b4655
commit afb22c3df6
5 changed files with 37 additions and 24 deletions

View File

@@ -120,8 +120,7 @@ func (s *Server) connState(conn net.Conn, state http.ConnState) {
}
}
// Serve creates a new Server and proceeds to block while handling requests
// until a graceful shutdown.
// Serve runs an HTTP server, blocking until the server has shut down.
func (s *Server) Serve() {
glog.V(0).Info("Starting HTTP on ", s.config.HTTPListenAddr)