@@ -23,6 +23,7 @@ internal class AutoRecoveringConnection : IConnection
2323 private readonly Func < IMessageIdPolicy > _messageIdPolicyFactory ;
2424 private readonly Func < string > _clientIdFactory ;
2525 private readonly SslSettings _sslSettings ;
26+ private readonly TcpSettings _tcpSettings ;
2627 private readonly ILogger < AutoRecoveringConnection > _logger ;
2728 private readonly Endpoint [ ] _endpoints ;
2829 private readonly ChannelReader < ConnectCommand > _reader ;
@@ -37,13 +38,15 @@ public AutoRecoveringConnection(ILoggerFactory loggerFactory,
3738 IRecoveryPolicy recoveryPolicy ,
3839 Func < IMessageIdPolicy > messageIdPolicyFactory ,
3940 Func < string > clientIdFactory ,
40- SslSettings sslSettings )
41+ SslSettings sslSettings ,
42+ TcpSettings tcpSettings )
4143 {
4244 _logger = loggerFactory . CreateLogger < AutoRecoveringConnection > ( ) ;
4345 _loggerFactory = loggerFactory ;
4446 _messageIdPolicyFactory = messageIdPolicyFactory ;
4547 _clientIdFactory = clientIdFactory ;
4648 _sslSettings = sslSettings ;
49+ _tcpSettings = tcpSettings ;
4750 _endpoints = endpoints . ToArray ( ) ;
4851
4952 var channel = Channel . CreateUnbounded < ConnectCommand > ( ) ;
@@ -178,7 +181,7 @@ private Task<IConnection> CreateConnection(CancellationToken cancellationToken)
178181 int retryCount = context . GetRetryCount ( ) ;
179182 var endpoint = GetNextEndpoint ( retryCount ) ;
180183 context . SetEndpoint ( endpoint ) ;
181- var connectionBuilder = new ConnectionBuilder ( _loggerFactory , _messageIdPolicyFactory , _clientIdFactory , _sslSettings ) ;
184+ var connectionBuilder = new ConnectionBuilder ( _loggerFactory , _messageIdPolicyFactory , _clientIdFactory , _sslSettings , _tcpSettings ) ;
182185 var connection = await connectionBuilder . CreateAsync ( endpoint , ct ) . ConfigureAwait ( false ) ;
183186
184187 if ( retryCount > 0 )
0 commit comments