All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Investigating Intermittent ECONNRESET Errors in Local TCP Connections (Part 1)

By

zdw

14d ago· 7 min readenInsight

Summary

A technical blog post investigating mysterious ECONNRESET errors occurring between two services communicating over TCP on the same machine. The author sets up a reproducer with a server that opens a listening TCP socket bound to localhost, and a client that connects to it. Despite no crashes or other errors in logs, the connecting service intermittently receives ECONNRESET errors while reading from the socket. The post is part 1 of 2, setting up the problem and a lab reproducer.

Key quotes

· 3 pulled
Two services running on the same machine. One of them opens a listening TCP socket bound to localhost, the other one connects to that.
Every now and then, the service that initiated the connection gets an ECONNRESET while reading from the socket -- but no other errors show up in the logs, no crashes, nothing.
Let's start with the "server", i.e. the service that opens the listening socket.
Snippet from the RSS feed
blog - git - desktop - contact

You might also wanna read