Page MenuHomeFreeBSD

fetch(3): Fix wrong usage of proxy when request is redirected to different URL
Needs ReviewPublic

Authored by yasu on Jan 31 2021, 5:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 4:26 PM
Unknown Object (File)
Oct 3 2024, 11:40 PM
Unknown Object (File)
Sep 8 2024, 10:08 PM
Unknown Object (File)
Sep 8 2024, 12:47 AM
Unknown Object (File)
Sep 5 2024, 11:14 PM
Unknown Object (File)
Aug 26 2024, 2:39 PM
Unknown Object (File)
Aug 11 2024, 12:41 PM
Unknown Object (File)
Aug 7 2024, 10:27 PM
Subscribers

Details

Reviewers
des
Summary

Under some proxy settings fetch(3) makes wrong usage of proxy when
request is redirected to different URL. (See "2. Detail of the
problem" of bug 252123 for the situation that the problem happens.)
The source of the problem is that in current implementation proxy
usage is decided with the URL of initial request and reused after the
request is redirected to different one. So the problem is fixed by
changing implementation so proxy usage is re-evaluated with new URL
each time request is redirected.

Test Plan

To test if the problem is fixed with this patch, web servers and
proxy are required. So it isn't possble to test it with unit test.
I tested that the problem is fixed under the situation describled
in bug 252123, but not sure if it is enough.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 36638
Build 33527: arc lint + arc unit