Skip to content

fix: servient.shutdown does not close open http connections - #1548

Open
DhairyaMajmudar wants to merge 1 commit into
eclipse-thingweb:masterfrom
DhairyaMajmudar:1506-servient_shutdown
Open

fix: servient.shutdown does not close open http connections#1548
DhairyaMajmudar wants to merge 1 commit into
eclipse-thingweb:masterfrom
DhairyaMajmudar:1506-servient_shutdown

Conversation

@DhairyaMajmudar

Copy link
Copy Markdown

Description

Servient.shutdown() did not close active HTTP property observations. Although shutdown completed, long-polling or SSE connections could remain open and prevent the Node process from exiting.

The reason for this was that HTTP and HTTPS client factories did not retain the clients they created, and their destroy() methods did not stop those clients.

References

Closes: #1506
Related to: #1503 (comment)

cc: @relu91 @egekorkan

Signed-off-by: DhairyaMajmudar <dhairya.opensource@gmail.com>
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.

servient.shutdown does not close open http connections

1 participant