Closed Bug 1295483 Opened 8 years ago Closed 8 years ago

Intermittent dom/network/tests/test_tcpsocket_jsm.html | Test timed out.

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1295453

People

(Reporter: intermittent-bug-filer, Unassigned)

References

Details

Component: Networking → DOM
This is a timeout in the new test added in bug 1104156. Either closeImmediately threw an exception (I'm not sure what would happen, in that case), or we yield indefinitely waiting for at least 1 byte of data that never arrives.
Blocks: 1104156
Are these test failing on some specific OS or they are failing in general?
Flags: needinfo?(josh)
https://brasstacks.mozilla.com/orangefactor/?display=Bug&bugid=1295483 shows intermittent failures on all major OSes.
Flags: needinfo?(josh)
I added a `throw TypeError("hi")` to the same code that calls closeImmediately and got different output, so we can ignore closeImmediately.
(In reply to Josh Matthews [:jdm] from comment #6)
> I added a `throw TypeError("hi")` to the same code that calls
> closeImmediately and got different output, so we can ignore closeImmediately.

So it has nothing to do with our new Implementation for closeImmediately.
Well, CloseImmediately may be implemented in a way that occasionally causes our new test to time out, rather than receive any data at all. I'm not sure yet.
When it would not get that 1 byte of data (In reply to Josh Matthews [:jdm] from comment #10)
> Well, CloseImmediately may be implemented in a way that occasionally causes
> our new test to time out, rather than receive any data at all. I'm not sure
> yet.

CloseImmediately can cause time out when it waits for that 1 byte of data and it does not receive that, it would wait for it indefinitely.
AFAICT this is indeed just a duplicate of bug 1295453 (it's arbitrary which is the duplicate of which, but I think bug 1295453's summary more closely indicates the root cause)
Figured out how to dupe this bug in a starring-friendly way, doing so.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.