icerpc / icerpc-csharp

A C# RPC framework built for QUIC, with bidirectional streaming, first-class async/await, and Protobuf support.
https://docs.icerpc.dev
Apache License 2.0
102 stars 13 forks source link

Add new connection cache test #4027

Closed bernardnormier closed 2 weeks ago

bernardnormier commented 3 weeks ago

This PR adds a new connection cache test to verify that the connection cache correctly selects an (the) alt server when the primary server is busy because it reached MaxConnections.

This test includes two test cases - for ice and icerpc.

A concern however is:

(this MaxConnections test uses the default transport (tcp), while all the connection cache tests use coloc)

pepone commented 2 weeks ago

the MaxConnections test suggests we can get IceRpcError.IceRpcError with the ice protocol

See https://github.com/icerpc/icerpc-csharp/pull/2462