3// license that can be found in the LICENSE file.
4
5▶// TODO: turn off the serve goroutine when idle, so
6// an idle conn only has the readFrames goroutine active. (which could
7// also be optimized probably to pin less memory in crypto/tls). This
· · ·
15// returns.
16
17▶// TODO (maybe): add a mechanism for Handlers to going into
18// half-closed-local mode (rw.(io.Closer) test?) but not exit their
19// handler, and continue to be able to read from the
· · ·
59 firstSettingsTimeout = 2 * time.Second // should be in-flight with preface anyway
60 handlerChunkWriteSize = 4 << 10
61▶ defaultMaxStreams = 250 // TODO: make this 100 as the GFE seems to?
62
63 // maxQueuedControlFrames is the maximum number of control frames like
· · ·
360 // addresses during development.
361 //
362▶ // TODO: optionally enforce? Or enforce at the time we receive
363 // a new request, and verify the ServerName matches the :authority?
364 // But that precludes proxy situations, perhaps.
· · ·
600// errno returns v's underlying uintptr, else 0.
601//
602▶// TODO: remove this helper function once http2 can use build
603// tags. See comment in isClosedConnError.
604func errno(v error) uintptr {
+ 13 more matches in this file