Closed Bug 1355207 Opened 2 years ago Closed 8 months ago

Intermittent TEST-UNEXPECTED-TIMEOUT | netwerk/test/httpserver/test/test_host.js | Test timed out


(Core :: Networking, defect, P3)




Tracking Status
firefox65 --- fixed
firefox66 --- fixed


(Reporter: intermittent-bug-filer, Assigned: valentin.gosu)


(Keywords: intermittent-failure, Whiteboard: [necko-triaged][retriggered][stockwell fixed])


(2 files)

Whiteboard: [necko-backlog]
Priority: -- → P3
Whiteboard: [necko-backlog] → [necko-triaged]
This test seems to be intermittent because we use hardcoded ports for the HTTP server - mainly 4444. Not sure if the test times out because the port is taken (doesn't seem so from the logs), but given that it's OSX only, it could have the same cause as bug 1481963 comment 2.
Looking into it. It may be that is to blame. But the test is badly written anyway - I'm inclined to disable it on OSX, as I found out in other bugs, sometimes connections to localhost on an unopened port are not rejected, they just time-out :|
Assignee: nobody → valentin.gosu
Pushed by
Improve test_host.js and add diagnostic info to figure out where it times out r=kershaw
Keywords: leave-open
This fails a lot for TB as well, I'd love to see it fixed.
The test intermittently fails on OSX. For some reason start(PORT) doesn't always fail when PORT is in use, so we timeout because the handler is never called. I suspect it's because of how SO_REUSEADDR and SO_REUSEPORT are handled on sockets sever-side on OSX. Since httpd is used for unit tests, there is little risk in disabling the test on OSX.
The alternative is to check for a timeout, and in that case switch to another port - which is cumbersome, and not the purpose of the test.
Pushed by
Wait for http server shutdown and disable test_host.js on OSX r=dragana
Closed: 2 years ago8 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
Flags: in-testsuite+
Whiteboard: [necko-triaged] [retriggered][stockwell needswork:owner] → [necko-triaged][retriggered][stockwell fixed]
You need to log in before you can comment on or make changes to this bug.