Miek Gieben d31b118978 
	
	
	plugin/transfer: fix go-routine leak ( #4380 ) ... 
			PR #4161  is stalled. Tried to cherry pick the code from there, but that
led to conflicts, manually copying over while taking into account the
comments on that PR. Use that code and extend the error checking, don't
modify existing tests and make the badwriter test simpler.
Closes : #4161 
Signed-off-by: Miek Gieben <miek@miek.nl >
add tests
Signed-off-by: Miek Gieben <miek@miek.nl > 
		
	 
		2021-01-13 09:16:01 +01:00 
	 
	
	
	
		 
	
	
		
			
			
			
			
			
			2020-09-24 18:14:41 +02:00 
		 
	
		
			
			
			
			
			
			2020-10-28 10:56:35 -07:00 
		 
	
		
			
			
			
			
			
			2020-11-11 18:45:01 +01:00 
		 
	
		
			
			
			
			
			
			2020-10-16 14:28:44 +02:00 
		 
	
		
			
			
			
			
			
			2021-01-11 14:58:56 -08:00 
		 
	
		
			
			
			
			
			
			2020-09-24 18:14:41 +02:00 
		 
	
		
			
			
			
			
			
			2020-09-24 18:14:41 +02:00 
		 
	
		
			
			
			
			
			
			2020-12-11 08:49:47 -08:00 
		 
	
		
			
			
			
			
			
			2020-10-28 10:56:35 -07:00 
		 
	
		
			
			
			
			
			
			2020-09-24 18:14:41 +02:00 
		 
	
		
			
			
			
			
			
			2021-01-12 13:38:18 +01:00 
		 
	
		
			
			
			
			
			
			2020-10-28 10:56:35 -07:00 
		 
	
		
			
			
			
			
			
			2020-09-24 18:14:41 +02:00 
		 
	
		
			
			
			
			
			
			2020-10-28 10:56:35 -07:00 
		 
	
		
			
			
			
			
			
			2021-01-10 08:30:00 +01:00 
		 
	
		
			
			
			
			
			
			2020-11-05 14:37:16 +01:00 
		 
	
		
			
			
			
			
			
			2020-10-28 10:56:35 -07:00 
		 
	
		
			
			
			
			
			
			2020-10-30 10:27:04 +01:00 
		 
	
		
			
			
			
			
			
			2020-11-11 18:45:01 +01:00 
		 
	
		
			
			
			
			
			
			2021-01-11 09:21:54 +01:00 
		 
	
		
			
			
			
			
			
			2020-12-15 14:02:15 +01:00 
		 
	
		
			
			
			
			
			
			2020-09-24 18:14:41 +02:00 
		 
	
		
			
			
			
			
			
			2020-10-27 09:15:42 +01:00 
		 
	
		
			
			
			
			
			
			2020-11-11 18:45:01 +01:00 
		 
	
		
			
			
			
			
			
			2020-10-28 10:56:35 -07:00 
		 
	
		
			
			
			
			
			
			2020-12-21 02:30:24 -08:00 
		 
	
		
			
			
			
			
			
			2021-01-06 08:34:32 -05:00 
		 
	
		
			
			
			
			
			
			2020-09-24 18:14:41 +02:00 
		 
	
		
			
			
			
			
			
			2020-11-05 15:02:07 +01:00 
		 
	
		
			
			
			
			
			
			2020-11-11 18:45:01 +01:00 
		 
	
		
			
			
			
			
			
			2020-09-24 18:14:41 +02:00 
		 
	
		
			
			
			
			
			
			2020-10-28 10:56:35 -07:00 
		 
	
		
			
			
			
			
			
			2020-10-30 10:27:04 +01:00 
		 
	
		
			
			
			
			
			
			2020-10-28 10:56:35 -07:00 
		 
	
		
			
			
			
			
			
			2021-01-12 13:55:01 +01:00 
		 
	
		
			
			
			
			
			
			2020-10-28 10:56:35 -07:00 
		 
	
		
			
			
			
			
			
			2020-10-01 16:13:23 +02:00 
		 
	
		
			
			
			
			
			
			2020-10-28 10:56:35 -07:00 
		 
	
		
			
			
			
			
			
			2020-09-24 18:14:41 +02:00 
		 
	
		
			
			
			
			
			
			2020-09-24 18:14:41 +02:00 
		 
	
		
			
			
			
			
			
			2020-10-24 14:37:01 +02:00 
		 
	
		
			
			
			
			
			
			2021-01-10 18:06:28 +08:00 
		 
	
		
			
			
			
			
			
			2020-10-30 10:27:04 +01:00 
		 
	
		
			
			
			
			
			
			2020-09-24 18:14:41 +02:00 
		 
	
		
			
			
			
			
			
			2020-09-22 09:22:00 +02:00 
		 
	
		
			
			
			
			
			
			2020-10-28 10:56:35 -07:00 
		 
	
		
			
			
			
			
			
			2020-12-11 21:07:25 +00:00 
		 
	
		
			
			
			
			
			
			2021-01-13 09:16:01 +01:00 
		 
	
		
			
			
			
			
			
			2020-09-24 18:14:41 +02:00 
		 
	
		
			
			
			
			
			
			2020-07-31 10:58:09 +02:00 
		 
	
		
			
			
			
			
			
			2020-09-24 20:30:39 +02:00 
		 
	
		
			
			
			
			
			
			2019-08-24 18:14:25 +00:00 
		 
	
		
			
			
			
			
			
			2018-07-19 16:23:06 +01:00 
		 
	
		
			
			
			
			
			
			2019-10-19 08:08:14 +01:00 
		 
	
		
			
			
			
			
			
			2019-10-19 08:08:14 +01:00 
		 
	
		
			
			
			
			
			
			2019-08-21 16:08:55 -04:00 
		 
	
		
			
			
			
			
			
			2020-09-24 18:14:41 +02:00