Home | History | Annotate | Download | only in http

Lines Matching refs:PRIORITY

1325 	http2FramePriority:     "PRIORITY",
1385 http2FlagHeadersPriority: "PRIORITY",
2216 // Priority is set if FlagHeadersPriority is set in the FrameHeader.
2217 Priority http2PriorityParam
2262 hf.Priority.StreamDep = v & 0x7fffffff
2263 hf.Priority.Exclusive = (v != hf.Priority.StreamDep) // high bit was set
2264 p, hf.Priority.Weight, err = http2readByte(p)
2298 // Priority, if non-zero, includes stream priority information
2300 Priority http2PriorityParam
2325 if !p.Priority.IsZero() {
2332 if !p.Priority.IsZero() {
2333 v := p.Priority.StreamDep
2337 if p.Priority.Exclusive {
2341 f.writeByte(p.Priority.Weight)
2348 // A PriorityFrame specifies the sender-advised priority of a stream.
2378 return nil, http2connError{http2ErrCodeProtocol, "PRIORITY frame with stream ID 0"}
2381 return nil, http2connError{http2ErrCodeFrameSize, fmt.Sprintf("PRIORITY frame payload size was %d; want 5", len(payload))}
2395 // WritePriority writes a PRIORITY frame.
4712 // 5.1.1 says: "An endpoint MUST NOT send frames other than PRIORITY on
4713 // a closed stream." Our server never sends PRIORITY, so that exception
4773 // RFC 7540 Section 5.1 allows sending RST_STREAM, PRIORITY, and WINDOW_UPDATE
4774 // in this state. (We never send PRIORITY from the server, so that is not checked.)
4873 // highest priority stream.
5093 // or PRIORITY on a stream in this state MUST be
5267 // or PRIORITY on a stream in this state MUST be
5458 if err := http2checkPriority(f.StreamID, f.Priority); err != nil {
5461 sc.writeSched.AdjustStream(st.id, f.Priority)
9220 // AdjustStream adjusts the priority of the given stream. This may be called
9222 // RFC 7540 allows PRIORITY
9224 AdjustStream(streamID uint32, priority http2PriorityParam)
9450 // retain in the priority tree. Setting this to zero saves a small amount
9456 // prioritization, since the stream could be given a priority that is
9460 // streams are assigned incorrect or default priority values."
9464 // retain in the priority tree. Setting this to zero saves a small amount
9469 // priority or become a parent of other streams. This allows for the
9471 // more flexible expressions of priority. Idle streams begin with a
9472 // default priority (Section 5.3.5).
9476 // data is delivered in priority order. This works around a race where
9480 // is a higher-priority stream. With throttling enabled, we write a small
9523 // priorityNode is a node in an HTTP/2 priority tree.
9534 // These links form the priority tree.
9582 // walkReadyInOrder iterates over the tree in priority order, calling f for each node
9604 // use mostly-linear priority trees.
9662 // root is the root of the priority tree, where root.id = 0.
9666 // nodes maps stream ids to priority tree nodes.
9746 func (ws *http2priorityWriteScheduler) AdjustStream(streamID uint32, priority http2PriorityParam) {
9772 // results in that stream being given a default priority (Section 5.3.5).
9773 parent := ws.nodes[priority.StreamDep]
9802 if priority.Exclusive {
9814 n.weight = priority.Weight
9827 // since RST_STREAM is tiny and the stream's priority is unknown
9920 func (ws *http2randomWriteScheduler) AdjustStream(streamID uint32, priority http2PriorityParam) {