The occasional ECONNRESET (part 1/2)
Summary
The article investigates sporadic ECONNRESET errors when two local services exchange data over a TCP connection. It provides a lab reproducer, tcpdump/strace observations, a first hypothesis about closing sockets with unread data causing RST, and a real-life scenario involving gunicorn/nginx, ending with a workaround and guidance for further investigation.