Skip to content

Commit 9e9b59e

Browse files
committed
Add TODOs
1 parent a88f54f commit 9e9b59e

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

projects/RabbitMQ.Client/client/impl/AutorecoveringConnection.Recovery.cs

-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,6 @@ await RecoverChannelsAndItsConsumersAsync(recordedEntitiesSemaphoreHeld: true)
226226
return false;
227227
}
228228

229-
// TODO cancellation token
230229
private async ValueTask<bool> TryRecoverConnectionDelegateAsync(CancellationToken cancellationToken)
231230
{
232231
try

projects/RabbitMQ.Client/client/impl/Connection.Commands.cs

+3
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,17 @@ internal void HandleConnectionUnblocked()
6969
}
7070
}
7171

72+
// TODO cancellationToken
7273
private async ValueTask StartAndTuneAsync()
7374
{
7475
var connectionStartCell = new TaskCompletionSource<ConnectionStartDetails>(TaskCreationOptions.RunContinuationsAsynchronously);
7576
_channel0.m_connectionStartCell = connectionStartCell;
7677
_channel0.HandshakeContinuationTimeout = _config.HandshakeContinuationTimeout;
7778
_frameHandler.ReadTimeout = _config.HandshakeContinuationTimeout;
79+
// TODO pass cancellationToken
7880
await _frameHandler.SendProtocolHeaderAsync()
7981
.ConfigureAwait(false);
82+
// TODO there is no timeout here, hmm
8083
ConnectionStartDetails connectionStart = await connectionStartCell.Task
8184
.ConfigureAwait(false);
8285

projects/RabbitMQ.Client/client/impl/Connection.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,13 @@ await _frameHandler.ConnectAsync(cancellationToken)
228228
.ConfigureAwait(false);
229229

230230
// Note: this must happen *after* the frame handler is started
231-
_mainLoopTask = Task.Run(MainLoop);
231+
_mainLoopTask = Task.Run(MainLoop, cancellationToken);
232232

233+
// TODO pass cancellationToken
233234
await StartAndTuneAsync()
234235
.ConfigureAwait(false);
235236

237+
// TODO maybe pass cancellationToken
236238
await _channel0.ConnectionOpenAsync(_config.VirtualHost)
237239
.ConfigureAwait(false);
238240

projects/RabbitMQ.Client/client/impl/SocketFrameHandler.cs

+1
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ public bool TryReadFrame(out InboundFrame frame)
283283
return InboundFrame.TryReadFrameFromPipe(_pipeReader, _amqpTcpEndpoint.MaxMessageSize, out frame);
284284
}
285285

286+
// TODO cancellationToken
286287
public async Task SendProtocolHeaderAsync()
287288
{
288289
await _pipeWriter.WriteAsync(Amqp091ProtocolHeader)

0 commit comments

Comments
 (0)