Closed
Bug 40497
Opened 25 years ago
Closed 13 years ago
Conn: "connection closed by foreign host" error needed for TCP transmission timeout
Categories
(Core :: Networking, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: tever, Unassigned)
Details
Overview Description: When network goes down in middle of page view
connection should give timeout message, not 'connection refused'.
Steps to Reproduce:
1.) Launch app, go to www.netscape.com for example
2.) click on a link to load a page
3.) while load is in progress, remove network cable
Actual Results: After time period I get a 'connection refused' message.
Expected Results: you should get a timeout message
Build Date & Platform Bug Found:
NT 2000052408
Yeah - it should get the timeout message. Setting milestone to future
Target Milestone: M18 → Future
Assignee: ruslan → gagan
Status: ASSIGNED → NEW
Target Milestone: Future → M19
seems like it didn't change the last time...
Assignee: gagan → darin
Target Milestone: --- → Future
Keywords: mozilla1.0
Updated•23 years ago
|
Summary: should get timeout message with when network goes down → Conn: should get timeout message with when network goes down
*** Bug 129502 has been marked as a duplicate of this bug. ***
Comment 8•22 years ago
|
||
I'm curious - is anyone working on this fix ? It still shows in 2002101612 and
can be damn annoying. It does it with mailnews as well as the broswer, so it's a
basic networking problem.. whenever it gets a timeout, it shows the user the
"connection refused" error box, which is completely incorrect behaviour.
A connection refused is a TCP RST packet being sent in response to a TCP SYN. It
means that 'the server was contacted, and replied, closing (okay, it never fully
opened, so maybe that's a bad word) the connection'
This is entirely different from 'the server did not respond', which is what
actually happened.
It's very reproducible.. pull out the uplink cable to the network, set up a
broken forced route to an address, or do anything else to cause the target IP to
not respond.
This behaviour may be a result of an incorrect socket message being passed back
from windows - I have noticed that windows is especially bad at passing
conn_refused back to the application layer (or many programmers are good at
ignoring it).
Some possibly related info:
In Netscape/Linux , if you attempt to connect to a closed port on a responding
IP, you can see in a packet trace the SYN and RST packets, which then cause an
immediate user error.
Under windows, watching multiple applications (telnet.exe, netscape.exe,
iexplore.exe) I have watched applications blindly ignore SYN/RST packets, and
wait for maybe a minute to see if the connection opens.. even though the packet
trace clearly shows what happened.. so from that, I think that windows never
correctly reports the connection refused to the app layer.
Maybe the connection refused message in mozilla was a kluge to try and display
the correct message in windows if it failed to connect, but went too far and
displays it for timeouts as well ?
Based on the number of filed bugs, we have many more problems with error
handling for connection establishment failures, so I think futuring of this
problem is reasonable.
This also is a problem that needs to be tested on a per protocol basis.
Darin, is necko lacking some underlying plumbing, or is this another "Networking
error needs to be handled by docshell" bug?
Comment 10•22 years ago
|
||
we need to add extra code to necko to fix this bug.
Comment 11•22 years ago
|
||
There should be some eventual error, although the timeout period would vary by
operating system.
Summary: Conn: should get timeout message with when network goes down → Conn:
Keywords: mozilla1.0
Summary: Conn: → Conn: "connection closed by foreign host" error needed for TCP transmission timeout
Comment 12•18 years ago
|
||
-> default owner
Assignee: darin → nobody
QA Contact: benc → networking
Target Milestone: Future → ---
Updated•18 years ago
|
Priority: P3 → --
Comment 13•13 years ago
|
||
UI around connection lost has changed a lot.
WFM?
FF now displays ...
Unable to connect
Firefox can't establish a connection to the server at google.com.
Whiteboard: [closeme 2012-02-21]
Comment 14•13 years ago
|
||
Resolved per whiteboard
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
Whiteboard: [closeme 2012-02-21]
You need to log in
before you can comment on or make changes to this bug.
Description
•