Skip to content

ContinuationTimeout is not getting picked from ConnectionFactory while creating channel. #821

@harshavardhan-gupta

Description

@harshavardhan-gupta

We are creating a ConnectionFactory with custom timeouts and then we are creating Connection

            var connectionFactory = new ConnectionFactory
            {
                HostName = <uri>,
                AutomaticRecoveryEnabled = true,
                NetworkRecoveryInterval = TimeSpan.FromSeconds(10),
                ContinuationTimeout = TimeSpan.FromSeconds(10),
                HandshakeContinuationTimeout = TimeSpan.FromSeconds(10),
                RequestedConnectionTimeout = TimeSpan.FromSeconds(10),
                SocketReadTimeout = TimeSpan.FromSeconds(10),
                SocketWriteTimeout = TimeSpan.FromSeconds(10),
                RequestedHeartbeat = TimeSpan.FromSeconds(10),
            };

            var connection = connectionFactory.CreateConnection();
            var publisherChannel = _connection.CreateModel();
// while inspecting `publisherChannel` has `ContinuationTimeout` of 20s

connection factory

channel

Somehow

model.ContinuationTimeout = m_factory.ContinuationTimeout;
this line is not in effect.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions