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

enhancement: Fixed the problem of reconnecting to instances of long heartbeat connections #1002

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

robotLJW
Copy link
Contributor

@robotLJW robotLJW commented Aug 23, 2021

What type of PR is this?
/fix

What this PR does / why we need it:
fixed the problem of reconnecting to instances of long heartbeat connections

Which issue(s) this PR fixes:
Fixes #983

Special notes for your reviewer: @tianxiaoliang @little-cui

Use case description:

There is no need to add a new use case. Previously, the related function use case has been included.

Does this PR introduce a user-facing change?

No

Additional documentation e.g., usage docs, etc.:

No

Verify

  1. Register an instance, use a long connection to send a heartbeat, and then delete

image

  1. try to re-register

image

image

@robotLJW robotLJW changed the title enhancement: Fixed the problem of reconnecting to instances of long h… enhancement: Fixed the problem of reconnecting to instances of long heartbeat connections Aug 23, 2021
@robotLJW robotLJW closed this Aug 23, 2021
@robotLJW robotLJW reopened this Aug 23, 2021
@@ -52,7 +52,7 @@ type Registrator interface {
//RegisterServiceInstance register a microservice instance to registry
RegisterServiceInstance(sid string, instance *MicroServiceInstance) (string, error)
RegisterServiceAndInstance(microService *MicroService, instance *MicroServiceInstance) (string, string, error)
Heartbeat(microServiceID, microServiceInstanceID string, instanceHeartbeatMode string) (bool, error)
Heartbeat(microServiceID, microServiceInstanceID string, instanceHeartbeatMode string, callback func()) error
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

must not change this interface

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

Successfully merging this pull request may close these issues.

支持servicecomb的websocket长连接
2 participants