Azure / azure-amqp-common-go

Azure AMQP abstractions for Golang contains common types and interfaces for use in Service Bus and Event Hubs.
MIT License
12 stars 25 forks source link

Receiving amqp: link closed while using the library #65

Open sruthiramani opened 2 years ago

sruthiramani commented 2 years ago

Expected Behavior

The client handles amqp related issues and reconnects.

Actual Behavior

While using eventhub v3.3.16, amqp v3.2.2, I'm occasionally encountering this error:

amqp: link closed

while trying to send events to eventhub using the Send API: https://pkg.go.dev/github.com/Azure/azure-event-hubs-go/v3@v3.3.16#Hub.Send

I don't have details on how long the connection was idle before this happened, but I would expect the library to handle this error and reconnect instead.

Environment

erezblm commented 1 year ago

@sruthiramani, did you manage to handle with this issue somehow? I'm using Event Hub lib v3.4.0 and also have the same issue, when sending messages. Did you try reconnecting the event hub? if so did it solve the problem?