Connection reset by peer problem encountered during jxl Excel Export

Source: Internet
Author: User
Tags connection reset

Socket communication has communication rules. If you want to maintain a persistent connection, you should have a communication protocol, including writing \ 0, which is also part of the rule. After a file is uploaded, wait for the next one. to maintain persistent connections, you can use WebService, so that your protocol becomes more readable and easier to package into products.


Look at yourProgramIf you want the read to end, it doesn't seem like you want to keep the persistent connection.

 

Frequent Connection reset by peer: there may be many reasons, but the more common reasons are:
①: When the number of concurrent connections on the server exceeds its capacity, the server will shut down some of the connections;
②: The client closes the browser, and the server is still sending data to the client;
③: The browser presses stop.
Many people say that it is caused by the client and there is no way to control it. This is a depressing problem.

This is caused by network connection disconnection. Generally, the firewall has a timeout mechanism. When the network connection does not transmit data for a long time, the TCP session is cut off, this will cause Connection reset by peer error.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.