Closed Bug 449412 Opened 18 years ago Closed 14 years ago

Close active connections on proxy reconfiguration

Categories

(Core :: Networking, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: hroehrig, Assigned: michal)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1 Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1 When I change my proxy settings (e.g., from "no proxy" to "manual proxy configuration"), existing SSL channels are not closed. For example, if I am logged into gmail with "no proxy" and I change to an non-existent manual proxy, loading new web pages fails, but gmail continues to work fine. Reproducible: Always Steps to Reproduce: 1. use "no proxy" 2. log in to gmail with https:// 3. change proxy to "manual proxy configuration" with localhost:12345 for all protocols 4. observe that gmail continues to work Actual Results: SSL channels stay open Expected Results: SSL channel should be reopened through proxy
Component: General → Networking
OS: Mac OS X → All
Product: Firefox → Core
QA Contact: general → networking
Hardware: PC → All
Attached patch patch v1 — — Splinter Review
This is problem not only in case of SSL. Every active connection should be closed on proxy reconfiguration. Switching to offline and immediately to online does it.
Assignee: nobody → michal
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #374055 - Flags: review?
Summary: SSL connections and proxy channels not closed on proxy reconfiguration → Close active connections on proxy reconfiguration
You have a patch on this bug that is flagged for 'review?' and not assigned to any reviewer. If you want the patch to be reviewed please assign a reviewer. Thanks
Oops, I've missed that. Thanks for attention.
Attachment #374055 - Flags: review? → review?(mconnor)
Comment on attachment 374055 [details] [diff] [review] patch v1 Even if cycling offline like this was a good idea (which it isn't, see the bugs doing this in private browsing caused) we should do it in Necko, so all consumers get this, not in /browser.
Attachment #374055 - Flags: review?(mconnor) → review-
(In reply to Hein Roehrig from comment #0) > User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; > rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1 > Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; > rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1 > > When I change my proxy settings (e.g., from "no proxy" to "manual proxy > configuration"), existing SSL channels are not closed. For example, if I am > logged into gmail with "no proxy" and I change to an non-existent manual > proxy, loading new web pages fails, but gmail continues to work fine. > > connection selection is done based based on the connection info hash key and the presence of a proxy is one of the elements of that hash. So even if we don't shutdown the old connections they won't be used if the routing has indeed changed. I wonder if the original report didn't specify an ssl proxy - in which case the proxy wouldn't be used for the gmail connection. in any event, I tested this out and it WFM without changes on 2012/sep/3 nightly. gmail also has some offline features built into it that can confuse testing a bit.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: