Re: [go-nuts] Background reader in an HTTP server's connection serving loop

2017-08-02 Thread Ian Lance Taylor
On Wed, Aug 2, 2017 at 5:55 AM, Konstantin Khomoutov wrote: > > The "conn" type from net/http/server.go, in its serve() method contains > a "for" loop which is supposed -- as I understand it -- to keep reading > requests from the connected socket if the client wished to reuse the > connection. > >

[go-nuts] Background reader in an HTTP server's connection serving loop

2017-08-02 Thread Konstantin Khomoutov
The "conn" type from net/http/server.go, in its serve() method contains a "for" loop which is supposed -- as I understand it -- to keep reading requests from the connected socket if the client wished to reuse the connection. That loop reads the request's header and then starts a background gorouti