]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: Serve creates service goroutines, not service threads
authorMatthew Dempsky <mdempsky@google.com>
Wed, 16 Jan 2013 22:05:41 +0000 (14:05 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 16 Jan 2013 22:05:41 +0000 (14:05 -0800)
R=bradfitz
CC=golang-dev
https://golang.org/cl/7132045

src/pkg/net/http/server.go

index e7b868557d1576ddabfc0d9d6a265587b9214247..434943d49a389087a2368fb1266294ee880d0f22 100644 (file)
@@ -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()