Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions src/Splitio/Services/EventSource/EventSourceClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,18 +128,17 @@ private async Task ConnectAsync()
catch (Exception ex)
{
_log.Debug($"Error connecting to {_url}.", ex);
}
finally
{
_disconnectSignal.Signal();

_log.Debug("Finished Event Source client ConnectAsync.");
if (!_statusManager.IsDestroyed())
{
_log.Debug("Stream closed unexpectedly, proceeding to reconnect.");
await _notificationManagerKeeper.HandleSseStatus(SSEClientStatusMessage.RETRYABLE_ERROR);
}
}
finally
{
_disconnectSignal.Signal();
_log.Debug("Finished Event Source client ConnectAsync.");
}
}

private async Task ReadStreamAsync()
Expand Down