Skip to content

Catch backend transport errors in ProxyHandler (#584)#584

Open
SamirFarhat17 wants to merge 1 commit intofacebookresearch:v2-betafrom
SamirFarhat17:export-D101553391-to-v2-beta
Open

Catch backend transport errors in ProxyHandler (#584)#584
SamirFarhat17 wants to merge 1 commit intofacebookresearch:v2-betafrom
SamirFarhat17:export-D101553391-to-v2-beta

Conversation

@SamirFarhat17
Copy link
Copy Markdown

@SamirFarhat17 SamirFarhat17 commented Apr 20, 2026

Summary:

Intercept TRANSPORT_READ_ERROR from the backend response source before it leaks to the downstream session. Without this, connection pool warmup causes noisy 'Application supplied internal error code ec=4103' warnings on every initial request batch.

Now the proxy reads the response headers itself — if the backend connection errors, it returns a clean 502 instead of propagating the raw transport error downstream.

Also modified BUCK to actually build the dcperf version of the foss_revproxy repo rather then the original internal version

Reviewed By: YifanYuan3

Differential Revision: D101553391

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 20, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Apr 20, 2026

@SamirFarhat17 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D101553391.

@meta-codesync meta-codesync Bot changed the title Catch backend transport errors in ProxyHandler Catch backend transport errors in ProxyHandler (#584) Apr 21, 2026
SamirFarhat17 added a commit to SamirFarhat17/DCPerf that referenced this pull request Apr 21, 2026
Summary:

Intercept TRANSPORT_READ_ERROR from the backend response source before it leaks to the downstream session. Without this, connection pool warmup causes noisy 'Application supplied internal error code ec=4103' warnings on every initial request batch.

Now the proxy reads the response headers itself — if the backend connection errors, it returns a clean 502 instead of propagating the raw transport error downstream.

Also modified BUCK to actually build the dcperf version of the foss_revproxy repo rather then the original internal version

Reviewed By: YifanYuan3

Differential Revision: D101553391
@SamirFarhat17 SamirFarhat17 force-pushed the export-D101553391-to-v2-beta branch from 6dc47e9 to 26c5293 Compare April 21, 2026 01:44
Summary:
Pull Request resolved: facebookresearch#584

Intercept TRANSPORT_READ_ERROR from the backend response source before it leaks to the downstream session. Without this, connection pool warmup causes noisy 'Application supplied internal error code ec=4103' warnings on every initial request batch.

Now the proxy reads the response headers itself — if the backend connection errors, it returns a clean 502 instead of propagating the raw transport error downstream.

Also modified BUCK to actually build the dcperf version of the foss_revproxy repo rather then the original internal version

Reviewed By: YifanYuan3

Differential Revision: D101553391
@SamirFarhat17 SamirFarhat17 force-pushed the export-D101553391-to-v2-beta branch from 26c5293 to 46c46ac Compare April 21, 2026 01:53
meta-codesync Bot pushed a commit that referenced this pull request Apr 21, 2026
Summary:
Pull Request resolved: #584

Intercept TRANSPORT_READ_ERROR from the backend response source before it leaks to the downstream session. Without this, connection pool warmup causes noisy 'Application supplied internal error code ec=4103' warnings on every initial request batch.

Now the proxy reads the response headers itself — if the backend connection errors, it returns a clean 502 instead of propagating the raw transport error downstream.

Also modified BUCK to actually build the dcperf version of the foss_revproxy repo rather then the original internal version

Reviewed By: YifanYuan3

Differential Revision: D101553391

fbshipit-source-id: 0f29555bedc71336fd30a18f761b98cc4a92769f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant