network connection timeout ETIMEDOUT misreported as ECONNREFUSED
Categories
(MailNews Core :: Networking, defect)
Tracking
(Not tracked)
People
(Reporter: mozilla, Unassigned)
Details
(Whiteboard: dupeme)
Updated•15 years ago
|
Reporter | ||
Comment 1•14 years ago
|
||
Comment 2•13 years ago
|
||
Reporter | ||
Comment 3•13 years ago
|
||
Updated•12 years ago
|
Updated•8 years ago
|
Comment 4•8 years ago
|
||
Updated•6 years ago
|
Updated•6 years ago
|
Comment 5•5 years ago
|
||
(In reply to Wayne Mery (:wsmwk) from comment #2)
yeah, i do believe this is a duplicate
I don't remember why I thought this. Have you seen evidence of other reports? Does it have implications for other bug reports?
Reporter | ||
Comment 6•5 years ago
|
||
No, I haven't seen evidence of other similar reports. Given my comment 3, I presumably searched for some, but didn't find any, so I asked. But hard to tell, as this was 8 years ago.
No idea whether it has implications of other bug reports, but I do notice that firefox tends to misreport error conditions quite often, in other areas as well.
About comment 4: If more than one error code require same treatment within Firefox, but different reports to the user, maybe one solution would be a major/minor code structure, where decision are based solely on major code, but messages use the minor code as well.
Comment 7•5 years ago
|
||
Google "site:bugzilla.mozilla.org ETIMEDOUT ECONNREFUSED" and there are a couple bugs shown that are similar but classed as WONTFIX.
Comment 8•5 years ago
|
||
(In reply to Alain Knaff from comment #6)
No, I haven't seen evidence of other similar reports. Given my comment 3, I presumably searched for some, but didn't find any, so I asked. But hard to tell, as this was 8 years ago.
No idea whether it has implications of other bug reports, but I do notice that firefox tends to misreport error conditions quite often, in other areas as well.About comment 4: If more than one error code require same treatment within Firefox, but different reports to the user, maybe one solution would be a major/minor code structure, where decision are based solely on major code, but messages use the minor code as well.
I tend to notice firefox/thunderbird fails to report error conditions at all (especially I/O errors, since the result of Read()/Write() not checked at all in many places. It is as if the programmers who wrote code lived in a virtual world where disks/SSD, etc. never fail and filesystem never gets corrupted, user never mistypes a filename, etc. Even places where the error conditions are checked, they are not reported explicitly to the users via UI interaction mechanism in many instances.
So the user is left with "errors not being reported/checked" and only when the underlying errors messed up mail store badly in TB's case, for example, one is forced to realize "Something went bad." But the user is left with no indication of when and what. This makes developers' life miserable, too since debugging and homing on the cause of the bug is very difficult after the fact.).
I was looking at https://bugzilla.mozilla.org/show_bug.cgi?id=777292 to check which previous patches touched the code that consolidates / lumps together the several error codes into NS_ERROR_CONNECTION_REFUSED when I noticed
https://bugzilla.mozilla.org/attachment.cgi?id=646574&action=diff
(Attachment #646574 [details] [diff]: netwerk/: Don't treat number of bytes as an nsresult for bug #777292 ).
I was appalled.
The few instances of ...->Read() I saw all can fail due to file system errors, etc. But no error checking is done in all the instances. Sigh.
(The first one seems to be a dummy read for a space holder, but others seem to contain something valid and a Read() error ought to be signaled back then and there as error return IMHO.)
Description
•