Open Bug 1390086 Opened 7 years ago Updated 2 months ago

Connecting Through Proxy Fails After Sleeping

Categories

(Core :: Networking: Proxy, defect, P5)

52 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: dave.hawkins, Unassigned)

Details

(Whiteboard: [necko-backlog])

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0
Build ID: 20170802111520

Steps to reproduce:

I'm inside a corporate network and when my machine is awoken from a sleep, a running firefox can no longer connect through the proxy.

1) Create new profile
2) Check that Options->Advanced->Network->Settings:"Use system proxy settings" is selected
2) Open https://www.mozilla.org/en-GB/
3) Open internal site that doesn't require the proxy
4) Sleep machine
5) Wake it up
6) Refresh (2) - I get the "Server not found" error page
7) Refresh (3) - This works fine

I can workaround the problem by selecting "Manual proxy configuration" in the settings, clicking OK and then selecting "Use system proxy settings" and again clicking OK. This seems to reset the proxy connection.

Is a stale connection to the proxy being used after the machine sleeps?


Actual results:

Connecting to external sites through proxy fails after machine sleeps.


Expected results:

External sites should continue to be available.
Component: Untriaged → Networking
Product: Firefox → Core
Dave, can you expand on what kind of proxy is being used? (SOCKS, HTTP, something else?) Does the proxy require authentication? Does this happen with non-proxied connections?

Also, if you can reproduce this with http logging enabled (https://developer.mozilla.org/en-US/docs/Mozilla/Debugging/HTTP_logging) and attach the log, that would help us figure out what's going on.

Thanks!
Flags: needinfo?(dave.hawkins)
Firstly, my steps need a correction:

4.5) Wait for network to reconnect
6) Refresh (2) - I get the "The connection has timed out" error page

When I was attempting to reproduce this, I wasn't behaving as I normally do, ie I don't normally immediately try to reload a page.

So to answer your questions:

As far as I know this is an http proxy that doesn't require authentication. It is coming from the LAN settings (Control Panel->Internet Options->Connections->LAN Settings): Use automatic configuration script. The address is http://wpad/wpad.dat where wpad gets resolved to a geographically specific server. The dat file then provides a geographically specific proxy.

It doesn't happen for sites that don't require a proxy, ie internal ones. However as I've already mentioned that in my steps, I'm perhaps misunderstanding what you mean by "non-proxied connections".
Flags: needinfo?(dave.hawkins)
I don't feel comfortable supplying the log. There are a few too many unidentifiable numbers in there.
Whiteboard: [necko-backlog]
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: -- → P1
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: P1 → P3

Bulk-downgrade of unassigned, >=3 years untouched DOM/Storage bug's priority.

If you have reason to believe this is wrong, please write a comment and ni :jstutte.

Severity: normal → S4
Priority: P3 → P5

Moving bug to Core/Networking: Proxy.

Component: Networking → Networking: Proxy
You need to log in before you can comment on or make changes to this bug.