Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect stale connections #4

Open
cornelk opened this issue Jun 2, 2020 · 1 comment
Open

Detect stale connections #4

cornelk opened this issue Jun 2, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@cornelk
Copy link
Owner

cornelk commented Jun 2, 2020

reset a timer when a message (ping, etc) gets received, reconnect when no message was send for a specific amount of time.

@cornelk cornelk added the enhancement New feature or request label Jun 2, 2020
@dalianzhu
Copy link

i found a issue, and not sure how to solve it.

I started a go client and received data,The last few logs are:

[WARNING] Failed to lookup topic map[error:request timed out name:syfjp subscription:nmpc_subscribe_v2_snmpPulsar_system topic:snmp_oceanus_filled_pulsar-partition-3]
[INFO] Reconnecting to broker in 3.2s map[name:syfjp subscription:nmpc_subscribe_v2_snmpPulsar_system topic:snmp_oceanus_filled_pulsar-partition-3]
[WARNING] Failed to lookup topic map[error:request timed out name:syfjp subscription:nmpc_subscribe_v2_snmpPulsar_system topic:snmp_oceanus_filled_pulsar-partition-5]
[WARNING] Detected stale connection to broker map[local_addr:172.19.2.126:34620 remote_addr:pulsar://100.66.21.146:6650]

Then no more messages are received and there is no error log. The program has been stuck for several hours and cannot receive or Ack. Until I restart it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants