Azure / amqpnetlite

AMQP 1.0 .NET Library
Apache License 2.0
396 stars 141 forks source link

AmqpSettings.IdleTimeout int to uint #577

Closed optimuserik closed 6 months ago

optimuserik commented 6 months ago

Change the default AmqpSettings.IdleTimeout from int to uint. Chenge the initialization from int.MaxValue to uint.MaxValue

optimuserik commented 6 months ago

@microsoft-github-policy-service agree

optimuserik commented 6 months ago

@microsoft-github-policy-service agree

optimuserik commented 6 months ago

@microsoft-github-policy-service rerun

xinchen10 commented 6 months ago

Unfortunately this is a breaking change which we are trying to avoid as much as possible.

Let me check the feasibility of still using an int type but allowing negative values, with "-1" being the special case for infinite (no timeout).

xinchen10 commented 6 months ago

@optimuserik I made a change to allow using -1 for infinite idle timeout. Can you verify if that resolves the issue you observed?

optimuserik commented 6 months ago

@xinchen10 It does solve the issue. Thank you :) . I will abandon this PR and mark the problem solved with your commit. Awaiting the release.