Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for http2takeInflows (0.27 sec)

  1. src/net/http/h2_bundle.go

    	return true
    }
    
    // takeInflows attempts to take n bytes from two inflows,
    // typically connection-level and stream-level flows.
    // It reports whether both windows have available capacity.
    func http2takeInflows(f1, f2 *http2inflow, n uint32) bool {
    	if n > uint32(f1.avail) || n > uint32(f2.avail) {
    		return false
    	}
    	f1.avail -= int32(n)
    	f2.avail -= int32(n)
    	return true
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 364.1K bytes
    - Viewed (0)
Back to top