Skip to content

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

Merged
danielpeintner merged 2 commits into
eclipse-thingweb:masterfrom
DhairyaMajmudar:1506-servient_shutdown
Sep 16, 2026
Merged

danielpeintner merged 2 commits into
eclipse-thingweb:masterfrom
DhairyaMajmudar:1506-servient_shutdown

Conversation

@DhairyaMajmudar

Copy link
Copy Markdown
Contributor

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>
Comment thread packages/binding-http/src/http-client-factory.ts Outdated
Signed-off-by: DhairyaMajmudar <dhairya.opensource@gmail.com>
@danielpeintner

Copy link
Copy Markdown
Member

The PR looks fine, and @relu91 gave his okay as well. 👍

I do see one issue in our CI pipeline.
see https://github.com/eclipse-thingweb/node-wot/actions/runs/34992932503/job/104461873456?pr=1548

Anyhow, this is unrelated to this PR and I will fix it in a follow-up!

@danielpeintner
danielpeintner merged commit 76652e1 into eclipse-thingweb:master Sep 16, 2026
10 of 11 checks passed
@DhairyaMajmudar
DhairyaMajmudar deleted the 1506-servient_shutdown branch September 16, 2026 14:35
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

3 participants