|
|
@@ -581,13 +581,10 @@ type stream struct {
|
|
|
cancelCtx func()
|
|
|
|
|
|
// owned by serverConn's serve loop:
|
|
|
- bodyBytes int64 // body bytes seen so far
|
|
|
- declBodyBytes int64 // or -1 if undeclared
|
|
|
- flow flow // limits writing from Handler to client
|
|
|
- inflow flow // what the client is allowed to POST/etc to us
|
|
|
- parent *stream // or nil
|
|
|
- numTrailerValues int64
|
|
|
- weight uint8
|
|
|
+ bodyBytes int64 // body bytes seen so far
|
|
|
+ declBodyBytes int64 // or -1 if undeclared
|
|
|
+ flow flow // limits writing from Handler to client
|
|
|
+ inflow flow // what the client is allowed to POST/etc to us
|
|
|
state streamState
|
|
|
resetQueued bool // RST_STREAM queued for write; set by sc.resetStream
|
|
|
gotTrailerHeader bool // HEADER frame for trailers was seen
|