Skip to content

fix: add missing resolve() when headers are already send using forward handlers#625

Merged
bliuchak merged 1 commit into
masterfrom
fix/promise
Dec 1, 2025
Merged

fix: add missing resolve() when headers are already send using forward handlers#625
bliuchak merged 1 commit into
masterfrom
fix/promise

Conversation

@bliuchak

Copy link
Copy Markdown
Contributor

Both forward and forward_socks are affected.

Found this during HTTPS scope split. Based on my investigation, the specific bug condition (client.on('error') firing after response.headersSent is true) appears to not possible to trigger reliably (or it's just my skill issue).

I used resolve() but not reject() to be consistent with pipeline() catch block which also calls resolve().

…d handlers

Both forward and forward_socks are affected.
@bliuchak bliuchak added bug Something isn't working. adhoc Ad-hoc unplanned task added during the sprint. low priority Low priority issues to be done eventually. t-core-services Issues with this label are in the ownership of the core services team. t-unblocking Issues with this label are in the ownership of the unblocking team. labels Nov 28, 2025

@jirimoravcik jirimoravcik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Makes sense, thank you

@bliuchak bliuchak merged commit c585e59 into master Dec 1, 2025
6 of 7 checks passed
@bliuchak bliuchak deleted the fix/promise branch December 1, 2025 09:31
@tobice tobice added the validated Issues that are resolved and their solutions fulfill the acceptance criteria. label Dec 8, 2025
@bliuchak bliuchak removed the t-core-services Issues with this label are in the ownership of the core services team. label Jan 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. bug Something isn't working. low priority Low priority issues to be done eventually. t-unblocking Issues with this label are in the ownership of the unblocking team. validated Issues that are resolved and their solutions fulfill the acceptance criteria.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants