Revert "file-restore-daemon: work around tokio DuplexStream bug"
This reverts commit 75f9f40922, which is
no longer needed now that we use tokio >= 1.6 which contains the proper
fix.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
			
			
This commit is contained in:
		
				
					committed by
					
						 Dietmar Maurer
						Dietmar Maurer
					
				
			
			
				
	
			
			
			
						parent
						
							f432a1c927
						
					
				
				
					commit
					3420029b5e
				
			| @ -286,11 +286,7 @@ fn extract( | ||||
|             bail!("file or directory {:?} does not exist", path); | ||||
|         } | ||||
|  | ||||
|         // FIXME: DuplexStream is currently broken and doesn't wake pending writers on close, i.e. | ||||
|         // this doesn't drop the WatchdogInhibitor if we encounter an error (client aborts, etc...) | ||||
|         // see: https://github.com/tokio-rs/tokio/pull/3756 | ||||
|         // let (mut writer, reader) = tokio::io::duplex(1024 * 64); | ||||
|         let (mut writer, reader) = tokio::net::UnixStream::pair()?; | ||||
|         let (mut writer, reader) = tokio::io::duplex(1024 * 64); | ||||
|  | ||||
|         if pxar { | ||||
|             tokio::spawn(async move { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user