Skip to content

Commit f4667c6

Browse files
committed
TUN-6427: Differentiate between upstream request closed/canceled and failed origin requests
1 parent 6a6ba70 commit f4667c6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

proxy/proxy.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ func (p *Proxy) proxyHTTPRequest(
196196
resp, err := httpService.RoundTrip(roundTripReq)
197197
if err != nil {
198198
tracing.EndWithErrorStatus(ttfbSpan, err)
199+
if err := roundTripReq.Context().Err(); err != nil {
200+
return errors.Wrap(err, "Incoming request ended abruptly")
201+
}
199202
return errors.Wrap(err, "Unable to reach the origin service. The service may be down or it may not be responding to traffic from cloudflared")
200203
}
201204

0 commit comments

Comments
 (0)