Error Codes Wiki

Linux Error ECONNRESET (errno 104) — Connection Reset Fix

Warninglinux errno

Overview

Linux errno 104 ECONNRESET means the connection was forcibly closed by the remote host.

Key Details

  • Error: ECONNRESET (errno 104)
  • Message: Connection reset by peer
  • Remote end abruptly closed the connection
  • Data may have been lost in transit

Common Causes

  • Remote server crashed or restarted
  • Load balancer idle timeout reached
  • Client sent data after server closed connection
  • Firewall killed the connection

Steps

  1. 1Implement connection retry logic
  2. 2Check remote server health and logs
  3. 3Increase keep-alive timeouts
  4. 4Use connection pooling with health checks
  5. 5Check for load balancer timeout settings

Tags

linuxlinux-errnolinux errno 104ubuntuterminal

More in Linux Errno

Frequently Asked Questions

Usually server-side — the remote end reset the connection.