Problem
The error “ Connection <#> closed due to error: Connection reset by peer" indicates that the connection was closed unexpectedly.
Cause
This is an error message that can be logged when using our core From LLP component. It is generated in the connection close handler when the socket is closed with an error condition.
A "Connection reset by peer" error usually means the remote system forcibly terminated the TCP connection instead of closing it gracefully. This can happen for several reasons, including:
-
the sender application stopped unexpectedly
-
the remote system timed out and closed the socket
-
a network device such as a firewall or load balancer dropped the connection
Solution
This message does not always indicate a problem in the From LLP component itself. In most cases, it means the connection was reset by the external system or by network infrastructure between the two systems.
To troubleshoot:
-
Edit the component configurations and change “ Print Debug Logs” to true. This will log additional information if the error occurs again.
-
Check the logs on the remote sending system to determine why it closed the connection.
-
Review any firewall, proxy, or load balancer settings that might be interrupting idle or long-lived TCP sessions.
-
If the error happens repeatedly, capture a network packet trace to get information around the connection reset. Tools such as Wireshark (or
tcpdumpon Linux servers) can be used to capture traffic between IguanaX and the sender.