A connection reset by peer message means that the site you are connected to has reset the connection. This is usually caused by a high amount of traffic on the site, but may be caused by a server error as well.
If the application is a consumer, it means that the server has reset the connection. Therefore, you need to verify the server log to find why the server cut the connection. Typically, from the server log, there are two main reasons for the server to cut the connection.
1. The output buffer overflow. This typically indicates that the application is a slow consumer or it could be a network issue
2. Ping timeout. This may indicate the application may be freeze or hang.
Please contact the server team to verify the problem.