-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
benchmark: http simple connect timeout on macOS #32337
Comments
can you enable and it seems like the macOS only issue, it's okay on my windows10 and WSL |
NET 98415: SERVER handle? true connections? 0
NET 98415: emit close
NET 98419: _read
NET 98415: _read
NET 98419: createConnection [
{
protocol: 'http:',
hostname: '127.0.0.1',
hash: '',
search: '',
pathname: '/bytes/4/1/normal/0',
path: null,
href: 'http://127.0.0.1:12346/bytes/4/1/normal/0',
port: 12346,
host: '127.0.0.1',
servername: '',
_agentKey: '127.0.0.1:12346:',
encoding: null
},
[Function: oncreate],
[Symbol(normalizedArgs)]: true
]
NET 98415: _read
NET 98419: pipe false null
NET 98415: _read
NET 98419: _final: not ended, call shutdown()
NET 98415: _read
NET 98419: _read
NET 98419: _read wait for connection
NET 98415: _read
NET 98419: destroy
NET 98419: close
NET 98415: _read
NET 98419: close handle
NET 98415: _read
NET 98419: afterShutdown destroyed=true ReadableState {
objectMode: false,
highWaterMark: 16384,
buffer: BufferList { head: null, tail: null, length: 0 },
length: 0,
pipes: [],
flowing: true,
ended: true,
endEmitted: true,
reading: false,
sync: false,
needReadable: false,
emittedReadable: false,
readableListening: false,
resumeScheduled: false,
errorEmitted: false,
emitClose: false,
autoDestroy: false,
destroyed: true,
defaultEncoding: 'utf8',
awaitDrainWriters: null,
multiAwaitDrain: false,
readingMore: false,
decoder: null,
encoding: null,
[Symbol(kPaused)]: false
}
NET 98415: _read
NET 98419: emit close
NET 98415: _read
NET 98419: afterConnect
NET 98415: _read
NET 98419: destroy
NET 98419: close
NET 98419: close handle
NET 98415: _read
events.js:292
throw er; // Unhandled 'error' event
^
Error: connect ETIMEDOUT 127.0.0.1:12346
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16)
Emitted 'error' event on ClientRequest instance at:
at Socket.socketErrorListener (_http_client.js:432:9)
at Socket.emit (events.js:315:20)
at emitErrorNT (internal/streams/destroy.js:84:8)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
errno: -60,
code: 'ETIMEDOUT',
syscall: 'connect',
address: '127.0.0.1',
port: 12346
}
NET 98415: _read
NET 98415: destroy
NET 98415: close
NET 98415: close handle
NET 98415: destroy
NET 98415: close
NET 98415: close handle
NET 98415: destroy
NET 98415: close
NET 98415: close handle
NET 98415: emit close
NET 98415: emit close
NET 98415: emit close
NET 98415: SERVER _emitCloseIfDrained
Error: test-double-http failed with 1.
at ChildProcess.<anonymous> (/Users/shilinzhu/github/SASUKE40/node/benchmark/_http-benchmarkers.js:238:16)
at Object.onceWrapper (events.js:422:26)
at ChildProcess.emit (events.js:315:20)
at maybeClose (internal/child_process.js:1026:16)
at Socket.<anonymous> (internal/child_process.js:441:11)
at Socket.emit (events.js:315:20)
at Pipe.<anonymous> (net.js:674:12) |
It's almost certainly an issue local to your system, like the firewall rejecting localhost connections or macos's network sandboxing system disallowing outgoing connections. I can't reproduce it on a macos 10.14 system, in any case. |
I got same timeout on my mac. Version: v13.11.0 |
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
Always reproduces.
What is the expected behavior?
It should run without timeout error on macOS.
What do you see instead?
Additional information
I found that it works when I change
duration
from 5 to 10. It could be some problem with frequently port binding.The text was updated successfully, but these errors were encountered: