Fix: Some Unknown Server Compile Problem.
This commit is contained in:
		@ -16,8 +16,9 @@ where
 | 
			
		||||
        // set timeouts.
 | 
			
		||||
        // We ignore errors here, so they will be caught in the clients thread.
 | 
			
		||||
        let _ = connection.as_mut().map(|stream| {
 | 
			
		||||
            stream.set_read_timeout(Duration::from_secs(config.read_timeout_s).into())?;
 | 
			
		||||
            stream.set_write_timeout(Duration::from_secs(config.write_timeout_s).into())?;
 | 
			
		||||
            let _ = stream.set_read_timeout(Duration::from_secs(config.read_timeout_s).into());
 | 
			
		||||
            let _ = stream.set_write_timeout(Duration::from_secs(config.write_timeout_s).into());
 | 
			
		||||
            stream
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
        let handler = handler.clone();
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user