wip: fix keep alive timeouts
This commit is contained in:
		
					parent
					
						
							
								d526ce6cb4
							
						
					
				
			
			
				commit
				
					
						b8f3034014
					
				
			
		
					 3 changed files with 9 additions and 1 deletions
				
			
		|  | @ -6,7 +6,10 @@ mod proxy_quic_quinn; | |||
| mod proxy_quic_s2n; | ||||
| mod socket; | ||||
| 
 | ||||
| use crate::{globals::Globals, hyper_ext::rt::LocalExecutor}; | ||||
| use crate::{ | ||||
|   globals::Globals, | ||||
|   hyper_ext::rt::{LocalExecutor, TokioTimer}, | ||||
| }; | ||||
| use hyper_util::server::{self, conn::auto::Builder as ConnectionBuilder}; | ||||
| use std::sync::Arc; | ||||
| 
 | ||||
|  | @ -20,10 +23,12 @@ pub(crate) fn connection_builder(globals: &Arc<Globals>) -> Arc<ConnectionBuilde | |||
|     .http1() | ||||
|     .keep_alive(globals.proxy_config.keepalive) | ||||
|     .header_read_timeout(globals.proxy_config.proxy_idle_timeout) | ||||
|     .timer(TokioTimer) | ||||
|     .pipeline_flush(true); | ||||
|   http_server | ||||
|     .http2() | ||||
|     .keep_alive_interval(Some(globals.proxy_config.proxy_idle_timeout)) | ||||
|     .timer(TokioTimer) | ||||
|     .max_concurrent_streams(globals.proxy_config.max_concurrent_streams); | ||||
|   Arc::new(http_server) | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jun Kurihara
				Jun Kurihara