Skip to content

Fix timeout propagation after redirects - #3692

Open
Sanjays2402 wants to merge 1 commit into
tornadoweb:masterfrom
Sanjays2402:fix/redirect-timeout-propagation
Open

Fix timeout propagation after redirects#3692
Sanjays2402 wants to merge 1 commit into
tornadoweb:masterfrom
Sanjays2402:fix/redirect-timeout-propagation

Conversation

@Sanjays2402

Copy link
Copy Markdown

SimpleAsyncHTTPClient followed redirects through the public Future API, so a timeout on the redirected request was raised from a done callback and the original fetch never completed. Continue through fetch_impl's response callback so the 599 error reaches the caller while retaining request defaults.

Adds a local redirect-to-stalled-handler regression test. Fixes #3064.

A timeout from a redirected request was raised from its done callback,
leaving the original fetch unresolved.

Continue redirects through the callback interface so error responses reach
the original fetch, and cover the timeout path with a regression test.

Fixes tornadoweb#3064
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.

simple_httpclient: Timeout after redirect not raised properly

1 participant