Azure / go-amqp

AMQP 1.0 client library for Go.
https://github.com/Azure/go-amqp
MIT License
104 stars 56 forks source link

Make writes deterministic #282

Closed jhendrixMSFT closed 1 year ago

jhendrixMSFT commented 1 year ago

Added Conn.WriteDeadline to control the write deadline when writing to net.Conn. The default value is 30 seconds. This can be overridden by APIs that take a context and the context has a deadline/timeout. For APIs that directly send frames, wait for the frame to be written to the underlying net.Conn before considering the write a success.

Fixes https://github.com/Azure/go-amqp/issues/280