From f8d67d8c9b81a1c7b7849e6e76c565ac6edc31a7 Mon Sep 17 00:00:00 2001 From: Ryan Kistner Date: Sun, 7 Jun 2020 18:28:21 -0600 Subject: [PATCH] Print task timeouts as connection timeouts --- DepotDownloader/ContentDownloader.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DepotDownloader/ContentDownloader.cs b/DepotDownloader/ContentDownloader.cs index ef30684d..d67c2ac6 100644 --- a/DepotDownloader/ContentDownloader.cs +++ b/DepotDownloader/ContentDownloader.cs @@ -958,6 +958,10 @@ namespace DepotDownloader Console.WriteLine( "Encountered error downloading chunk {0}: {1}", chunkID, e.StatusCode ); } } + catch ( TaskCanceledException ) + { + Console.WriteLine( "Connection timeout downloading chunk {0}", chunkID ); + } catch ( Exception e ) { cdnPool.ReturnBrokenConnection( connection );