aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/VNLib.Data.Caching.Extensions/src/Clustering/CacheClientConfiguration.cs2
-rw-r--r--lib/VNLib.Plugins.Extensions.VNCache/src/VnCacheClient.cs5
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/VNLib.Data.Caching.Extensions/src/Clustering/CacheClientConfiguration.cs b/lib/VNLib.Data.Caching.Extensions/src/Clustering/CacheClientConfiguration.cs
index 1c1997e..5a15d33 100644
--- a/lib/VNLib.Data.Caching.Extensions/src/Clustering/CacheClientConfiguration.cs
+++ b/lib/VNLib.Data.Caching.Extensions/src/Clustering/CacheClientConfiguration.cs
@@ -84,6 +84,8 @@ namespace VNLib.Data.Caching.Extensions.Clustering
/// </summary>
/// <param name="peers">The collection of servers to discover peers from and connect to</param>
/// <returns>Chainable fluent object</returns>
+ /// <exception cref="ArgumentException"></exception>
+ /// <exception cref="ArgumentNullException"></exception>
public CacheClientConfiguration WithInitialPeers(IEnumerable<Uri> peers)
{
//Check null
diff --git a/lib/VNLib.Plugins.Extensions.VNCache/src/VnCacheClient.cs b/lib/VNLib.Plugins.Extensions.VNCache/src/VnCacheClient.cs
index d62c831..b10cef7 100644
--- a/lib/VNLib.Plugins.Extensions.VNCache/src/VnCacheClient.cs
+++ b/lib/VNLib.Plugins.Extensions.VNCache/src/VnCacheClient.cs
@@ -191,12 +191,13 @@ namespace VNLib.Plugins.Extensions.VNCache
}
catch (WebSocketException wse)
{
- pluginLog.Warn("Failed to connect to cache server {reason}", 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 server");
+ pluginLog.Debug("Failed to connect to random cache server because a TCP connection could not be established");
//Continue next loop
continue;
}