aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Relay
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2023-01-23 08:25:26 -0600
committerJP Dillingham <jp@dillingham.me>2023-01-23 08:25:26 -0600
commitb7d70dbe919fe7c64897d92bf79e6416c7a7f078 (patch)
tree1f3d2c6d5a759b888051d839a22ab8f2e4384604 /src/slskd/Relay
parent1340ffa52dd3aaa63840f9e36f3e6fb495d97a86 (diff)
downloadslskd-b7d70dbe919fe7c64897d92bf79e6416c7a7f078.tar.gz
docs
Diffstat (limited to 'src/slskd/Relay')
-rw-r--r--src/slskd/Relay/RelayClient.cs3
-rw-r--r--src/slskd/Relay/RelayService.cs10
2 files changed, 6 insertions, 7 deletions
diff --git a/src/slskd/Relay/RelayClient.cs b/src/slskd/Relay/RelayClient.cs
index fbf13e14..eef84c27 100644
--- a/src/slskd/Relay/RelayClient.cs
+++ b/src/slskd/Relay/RelayClient.cs
@@ -501,7 +501,6 @@ namespace slskd.Relay
try
{
// wait for the authentication flow to complete
- // time out after 5 seconds in case we get stuck waiting on a dead Task
await LoggedInTaskCompletionSource.Task;
Log.Information("Uploading shares...");
@@ -510,7 +509,7 @@ namespace slskd.Relay
}
catch (Exception ex)
{
- Log.Error(ex, ex.Message);
+ Log.Error(ex, "Failed to log in and/or upload shares: {Message}", ex.Message);
Log.Error("Disconnecting from the relay controller");
// stop, then fire and forget StartAsync() to re-enter the connection retry loop
diff --git a/src/slskd/Relay/RelayService.cs b/src/slskd/Relay/RelayService.cs
index a403fa73..c7056a0c 100644
--- a/src/slskd/Relay/RelayService.cs
+++ b/src/slskd/Relay/RelayService.cs
@@ -75,7 +75,7 @@ namespace slskd.Relay
/// </item>
/// <item>
/// The remote agent makes an HTTP POST request containing a multipart upload including a backup of its shared
- /// database and a serialized list of locally configured shares, and the controller invokes <see cref="HandleShareUpload"/>.
+ /// database and a serialized list of locally configured shares, and the controller invokes <see cref="HandleShareUploadAsync"/>.
/// </item>
/// </list>
/// </remarks>
@@ -122,7 +122,7 @@ namespace slskd.Relay
/// <item>
/// <para>
/// The remote agent makes an HTTP POST request containing a multipart upload including the file, and the
- /// API controller invokes and awaits <see cref="HandleFileStreamResponse"/>. The stream is passed from
+ /// API controller invokes and awaits <see cref="HandleFileStreamResponseAsync"/>. The stream is passed from
/// this method back to the awaited <see cref="GetFileStreamAsync"/>, and the Upload service passes the
/// stream to Soulseek.NET, streaming the data from the still-open HTTP request through to the remote
/// Soulseek user.
@@ -137,7 +137,7 @@ namespace slskd.Relay
/// <item>
/// When the Upload is complete (successfully or otherwise), the Upload service invokes
/// <see cref="TryCloseFileStream"/>, passing an optional <see cref="Exception"/> if the transfer was not
- /// successful. This call signals the waiting <see cref="HandleFileStreamResponse"/> to complete, passing
+ /// successful. This call signals the waiting <see cref="HandleFileStreamResponseAsync"/> to complete, passing
/// control back to the API controller and completing the HTTP POST request from the agent.
/// </item>
/// </list>
@@ -451,7 +451,7 @@ namespace slskd.Relay
/// <item>
/// <para>
/// The remote agent makes an HTTP POST request containing a multipart upload including the file, and the
- /// API controller invokes and awaits <see cref="HandleFileStreamResponse"/>. The stream is passed from
+ /// API controller invokes and awaits <see cref="HandleFileStreamResponseAsync"/>. The stream is passed from
/// this method back to the awaited <see cref="GetFileStreamAsync"/>, and the Upload service passes the
/// stream to Soulseek.NET, streaming the data from the still-open HTTP request through to the remote
/// Soulseek user.
@@ -466,7 +466,7 @@ namespace slskd.Relay
/// <item>
/// When the Upload is complete (successfully or otherwise), the Upload service invokes
/// <see cref="TryCloseFileStream"/>, passing an optional <see cref="Exception"/> if the transfer was not
- /// successful. This call signals the waiting <see cref="HandleFileStreamResponse"/> to complete, passing
+ /// successful. This call signals the waiting <see cref="HandleFileStreamResponseAsync"/> to complete, passing
/// control back to the API controller and completing the HTTP POST request from the agent.
/// </item>
/// </list>