| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
It doesn't make much sense. Why resuming the stream a bit later fixes it? |
Sorry, something went wrong.
Thanks for potting it out @lpinca! I think you are absolutely right. I tried to dig it but without stack trace or meaning log I really couldn't get any direction. I am wondering if the timeout generally makes the test flaky, shall we change it to setImmediate in this case? |
Sorry, something went wrong.
|
See #52959 (comment). I think the issue here is the same. |
Sorry, something went wrong.
|
Thanks again! I have read about that comment and now it rings the bell! |
Sorry, something went wrong.
|
Can you try if the --jitless flag fixes the issue? I can't reproduce this test failure on my machine. |
Sorry, something went wrong.
|
Sure, I will try it now. Can I ask two questions here:
./tools/test.py --repeat 10000 test/parallel/test-pipe-file-to-http.js
=== release test-pipe-file-to-http ===
Path: parallel/test-pipe-file-to-http
node:events:498
throw er; // Unhandled 'error' event
^
Error: write EPIPE
at afterWriteDispatched (node:internal/stream_base_commons:161:15)
at writevGeneric (node:internal/stream_base_commons:144:3)
at Socket._writeGeneric (node:net:952:11)
at Socket._writev (node:net:961:8)
at doWrite (node:internal/streams/writable:588:12)
at clearBuffer (node:internal/streams/writable:767:5)
at Writable.uncork (node:internal/streams/writable:523:7)
at connectionCorkNT (node:_http_outgoing:1031:8)
at process.processTicksAndRejections (node:internal/process/task_queues:81:21)
Emitted 'error' event on ClientRequest instance at:
at ClientRequest.onerror (node:internal/streams/readable:1026:14)
at ClientRequest.emit (node:events:520:28)
at Socket.socketErrorListener (node:_http_client:502:9)
at Socket.emit (node:events:520:28)
at emitErrorNT (node:internal/streams/destroy:170:8)
at emitErrorCloseNT (node:internal/streams/destroy:129:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -32,
code: 'EPIPE',
syscall: 'write'
}
Node.js v23.0.0-pre
# OR
=== release test-pipe-file-to-http ===
Path: parallel/test-pipe-file-to-http
node:events:498
throw er; // Unhandled 'error' event
^
Error: write EPIPE
at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:95:16)
Emitted 'error' event on ClientRequest instance at:
at ClientRequest.onerror (node:internal/streams/readable:1026:14)
at ClientRequest.emit (node:events:520:28)
at Socket.socketErrorListener (node:_http_client:502:9)
at Socket.emit (node:events:520:28)
at emitErrorNT (node:internal/streams/destroy:170:8)
at emitErrorCloseNT (node:internal/streams/destroy:129:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -32,
code: 'EPIPE',
syscall: 'write'
}
Node.js v23.0.0-pre
Do you have any idea why I am getting it 👀 any potentially misconfiguration or something else?
|
Sorry, something went wrong.
Ummm I can still reproduce this on main on my machine - running 10,000 times and its around 30% atm got 2 timeout related failures: === release test-pipe-file-to-http === Path: parallel/test-pipe-file-to-http Command: out/Release/node ./node/test/parallel/test-pipe-file-to-http.js --- TIMEOUT --- === release test-pipe-file-to-http === Path: parallel/test-pipe-file-to-http Command: out/Release/node ./node/test/parallel/test-pipe-file-to-http.js --- TIMEOUT --- |
Sorry, something went wrong.
|
Sorry, something went wrong.
|
Did another run with adding host: '127.0.0.1 option into http.request along with //Flags: --jitless still 3 timeouts, still got 1 potentially peer writes when other peer closes./tools/test.py --repeat 10000 test/parallel/test-pipe-file-to-http.js
=== release test-pipe-file-to-http ===
Path: parallel/test-pipe-file-to-http
Warning: disabling flag --expose_wasm due to conflicting flags
Command: out/Release/node --jitless ./node/test/parallel/test-pipe-file-to-http.js
--- TIMEOUT ---
=== release test-pipe-file-to-http ===
Path: parallel/test-pipe-file-to-http
Warning: disabling flag --expose_wasm due to conflicting flags
Command: out/Release/node --jitless ./node/test/parallel/test-pipe-file-to-http.js
--- TIMEOUT ---
=== release test-pipe-file-to-http ===
Path: parallel/test-pipe-file-to-http
Warning: disabling flag --expose_wasm due to conflicting flags
node:events:498
throw er; // Unhandled 'error' event
^
Error: write EPIPE
at afterWriteDispatched (node:internal/stream_base_commons:161:15)
at writevGeneric (node:internal/stream_base_commons:144:3)
at Socket._writeGeneric (node:net:952:11)
at Socket._writev (node:net:961:8)
at doWrite (node:internal/streams/writable:588:12)
at clearBuffer (node:internal/streams/writable:767:5)
at Writable.uncork (node:internal/streams/writable:523:7)
at connectionCorkNT (node:_http_outgoing:1031:8)
at process.processTicksAndRejections (node:internal/process/task_queues:81:21)
Emitted 'error' event on ClientRequest instance at:
at ClientRequest.onerror (node:internal/streams/readable:1026:14)
at ClientRequest.emit (node:events:520:28)
at Socket.socketErrorListener (node:_http_client:502:9)
at Socket.emit (node:events:520:28)
at emitErrorNT (node:internal/streams/destroy:170:8)
at emitErrorCloseNT (node:internal/streams/destroy:129:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -32,
code: 'EPIPE',
syscall: 'write'
}
Node.js v23.0.0-pre
Command: out/Release/node --jitless ./node/test/parallel/test-pipe-file-to-http.js
=== release test-pipe-file-to-http ===
Path: parallel/test-pipe-file-to-http
Warning: disabling flag --expose_wasm due to conflicting flags
Command: out/Release/node --jitless ./node/test/parallel/test-pipe-file-to-http.js
--- TIMEOUT ---
|
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes: #52963
Reproduced with 1000 runs:
After apply the fix seems stable: