- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for evictOldest (0.19 sec)
-
src/vendor/golang.org/x/net/http2/hpack/tables.go
t.byName[f.Name] = id t.byNameValue[pairNameValue{f.Name, f.Value}] = id t.ents = append(t.ents, f) } // evictOldest evicts the n oldest entries in the table. func (t *headerFieldTable) evictOldest(n int) { if n > t.len() { panic(fmt.Sprintf("evictOldest(%v) on table with %v entries", n, t.len())) } for k := 0; k < n; k++ { f := t.ents[k] id := t.evictCount + uint64(k) + 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 18 22:32:44 UTC 2022 - 7.5K bytes - Viewed (0) -
src/vendor/golang.org/x/net/http2/hpack/hpack.go
} // If we're too big, evict old stuff. func (dt *dynamicTable) evict() { var n int for dt.size > dt.maxSize && n < dt.table.len() { dt.size -= dt.table.ents[n].Size() n++ } dt.table.evictOldest(n) } func (d *Decoder) maxTableIndex() int { // This should never overflow. RFC 7540 Section 6.5.2 limits the size of // the dynamic table to 2^32 bytes, where each entry will occupy more than
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 14 18:30:34 UTC 2023 - 14.7K bytes - Viewed (0)