Skip to content

Commit

Permalink
Fix failing relay using relaxed mode (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
dasgarner authored Oct 18, 2023
1 parent 0dd335d commit 09d07ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Worker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ Task Relay(CancellationToken stoppingToken)
_logger.LogInformation("Creating a relay socket");

using var relaySocket = new RequestSocket(_settings.relayOn);
relaySocket.Options.Relaxed = true;

while (!stoppingToken.IsCancellationRequested)
{
Expand All @@ -277,6 +278,7 @@ Task Relay(CancellationToken stoppingToken)
if (!receiveResult)
{
_logger.LogError("Unable to relay message, no response");
_logger.LogDebug("Failed message: {message}", message);
}

_logger.LogDebug("Relay message: {return}", sendReturn);
Expand Down

0 comments on commit 09d07ef

Please sign in to comment.