-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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
Simple http
proxy with socketPath
leads to EPIPE
error
#40553
Comments
I have linked a few issues from other repositories that seem like they are related; for example: hapijs/hapi#4296. |
Looking at the commits going into v14.18.0, I would say that libuv/libuv@ce15b84 is a likely culprit, as a revert of a previously reverted commit. |
I have been trying to debug this. Some things I've noticed:
|
This should be resolved by #41116. |
Hi, Do you know when it will be pushed to v14 LTS branch? We are affected by this too. Thank you =) |
Version
v16.7.0
Platform
Linux e332ae582690 5.10.47-linuxkit #1 SMP Sat Jul 3 21:51:47 UTC 2021 x86_64 Linux
Subsystem
No response
What steps will reproduce the bug?
I have created a simple HTTP proxy that pipes to a socket:
On
v16.7.0
, this leads to anEPIPE
error after a few hundred requests. Onv16.6.2
, it does not hit anEPIPE
error after many thousands of requests.A full Docker Linux reproduction is here: https://github.com/mhassan1/node-16-7-0-proxy-epipe
How often does it reproduce? Is there a required condition?
It reproduces every time within a few hundred requests.
What is the expected behavior?
No
EPIPE
.What do you see instead?
EPIPE
after a few hundred requests:node:events:371 throw er; // Unhandled 'error' event ^ Error: write EPIPE at afterWriteDispatched (node:internal/stream_base_commons:164:15) at writeGeneric (node:internal/stream_base_commons:155:3) at Socket._writeGeneric (node:net:780:11) at Socket._write (node:net:792:8) at doWrite (node:internal/streams/writable:408:12) at clearBuffer (node:internal/streams/writable:569:7) at onwrite (node:internal/streams/writable:461:7) at afterWriteDispatched (node:internal/stream_base_commons:167:9) at writevGeneric (node:internal/stream_base_commons:147:3) at Socket._writeGeneric (node:net:778:11) Emitted 'error' event on ClientRequest instance at: at Socket.socketErrorListener (node:_http_client:447:9) at Socket.emit (node:events:394:28) at emitErrorNT (node:internal/streams/destroy:157:8) at emitErrorCloseNT (node:internal/streams/destroy:122:3) at processTicksAndRejections (node:internal/process/task_queues:83:21) { errno: -32, code: 'EPIPE', syscall: 'write' }
Additional information
v14.18.0
but notv14.17.6
The text was updated successfully, but these errors were encountered: