Skip to content

Async API - socket read timeout has no effect #1492

@lukebakken

Description

@lukebakken

Is your feature request related to a problem? Please describe.

The v7 async API uses .NET Pipelines and ReadAsync from a NetworkStream in SocketFrameHandler:

https://github.com/rabbitmq/rabbitmq-dotnet-client/blob/main/projects/RabbitMQ.Client/client/impl/SocketFrameHandler.cs#L284

https://github.com/rabbitmq/rabbitmq-dotnet-client/blob/main/projects/RabbitMQ.Client/client/impl/Frame.cs#L257-L283

Even though we set a socket read timeout here, this will have no effect on an async read (docs)

So, this means that reads will never time out. This should be OK because we have heartbeats, but it would be great to have a test for this.

Describe the solution you'd like

A test for socket read timeout. It'll probably involve toxiproxy.

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