You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using a GraphQL subscription to listen to the AMQP receiver and send back live results as they come in. I notice that the receiver stops sending on an address after some period of time (around 3 mins). If I change the address, the connection works again until some period of time (around 3 mins).
Is there any way to check if a connection is stale and reconnect? Or better yet, a keep-alive flag? Is there something I should be doing differently in the code? Note - I tried both rxJava and non-rxJava versions and they give me the same result.
There are createReceiver methods which take an AmqpClientOptions parameter, IIRC there's a keep-alive option there. Also, receivers can have an exception handler set, perhaps it can be used to detect disconnects?
Honestly, I think the client documentation could and should do a much better job at explaining connection usage and lifecycle, as well as exception handling. 😞
I am using a GraphQL subscription to listen to the AMQP receiver and send back live results as they come in. I notice that the receiver stops sending on an address after some period of time (around 3 mins). If I change the address, the connection works again until some period of time (around 3 mins).
Is there any way to check if a connection is stale and reconnect? Or better yet, a keep-alive flag? Is there something I should be doing differently in the code? Note - I tried both rxJava and non-rxJava versions and they give me the same result.
Example rxJava code is below
FWIW I'm on vert.x 3.8.5 for everything
This kinda seems related to #23
The text was updated successfully, but these errors were encountered: