diff options
author | vnugent <public@vaughnnugent.com> | 2023-08-07 20:08:18 -0400 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2023-08-07 20:08:18 -0400 |
commit | 9c9e00515a367a7c4a916d19c3d71795f2193910 (patch) | |
tree | a1a898edbbe57c4e7ba6e2e38ac9a6c2e4b568cc /lib/VNLib.Plugins.Extensions.VNCache/src/VnCacheClient.cs | |
parent | bd4590d7cfaf2fa554ff6c37e095975ac4eb0f02 (diff) |
New api impl patch
Diffstat (limited to 'lib/VNLib.Plugins.Extensions.VNCache/src/VnCacheClient.cs')
-rw-r--r-- | lib/VNLib.Plugins.Extensions.VNCache/src/VnCacheClient.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/VNLib.Plugins.Extensions.VNCache/src/VnCacheClient.cs b/lib/VNLib.Plugins.Extensions.VNCache/src/VnCacheClient.cs index 72eecd8..df7008d 100644 --- a/lib/VNLib.Plugins.Extensions.VNCache/src/VnCacheClient.cs +++ b/lib/VNLib.Plugins.Extensions.VNCache/src/VnCacheClient.cs @@ -189,17 +189,18 @@ namespace VNLib.Plugins.Extensions.VNCache pluginLog.Debug("Cache server disconnected"); } + catch(TimeoutException) + { + pluginLog.Warn("Failed to establish a websocket connection to cache server"); + } catch (WebSocketException wse) { pluginLog.Warn("Failed to establish a websocket connection to cache server {reason}", wse.Message); - continue; } //SEs may be raised when the server is not available catch (HttpRequestException he) when (he.InnerException is SocketException) { pluginLog.Debug("Failed to connect to random cache server because a TCP connection could not be established"); - //Continue next loop - continue; } finally { |