add Client config to disable server push
- Adds `Client::builder().enable_push(false)` to disable push - Client sends a GO_AWAY if receiving a push when it's disabled
This commit is contained in:
		| @@ -49,11 +49,11 @@ where | ||||
|     pub fn new(config: &Config) -> Prioritize<B, P> { | ||||
|         let mut flow = FlowControl::new(); | ||||
|  | ||||
|         flow.inc_window(config.init_local_window_sz) | ||||
|         flow.inc_window(config.local_init_window_sz) | ||||
|             .ok() | ||||
|             .expect("invalid initial window size"); | ||||
|  | ||||
|         flow.assign_capacity(config.init_local_window_sz); | ||||
|         flow.assign_capacity(config.local_init_window_sz); | ||||
|  | ||||
|         trace!("Prioritize::new; flow={:?}", flow); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user