From: Matthew Dempsky Date: Wed, 16 Jan 2013 22:05:41 +0000 (-0800) Subject: net/http: Serve creates service goroutines, not service threads X-Git-Tag: go1.1rc2~1383 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=1a03580ef112d7e7103790e102a5582b8dcbaf0d;p=gostls13.git net/http: Serve creates service goroutines, not service threads R=bradfitz CC=golang-dev https://golang.org/cl/7132045 --- diff --git a/src/pkg/net/http/server.go b/src/pkg/net/http/server.go index e7b868557d..434943d49a 100644 --- a/src/pkg/net/http/server.go +++ b/src/pkg/net/http/server.go @@ -1216,7 +1216,7 @@ func HandleFunc(pattern string, handler func(ResponseWriter, *Request)) { } // Serve accepts incoming HTTP connections on the listener l, -// creating a new service thread for each. The service threads +// creating a new service goroutine for each. The service goroutines // read requests and then call handler to reply to them. // Handler is typically nil, in which case the DefaultServeMux is used. func Serve(l net.Listener, handler Handler) error { @@ -1250,7 +1250,7 @@ func (srv *Server) ListenAndServe() error { } // Serve accepts incoming connections on the Listener l, creating a -// new service thread for each. The service threads read requests and +// new service goroutine for each. The service goroutines read requests and // then call srv.Handler to reply to them. func (srv *Server) Serve(l net.Listener) error { defer l.Close()