2014年5月26日星期一

tomcat reported Connection reset by peer: socket write error

 This post last edited by the yhc13429826359 on 2013-06-04 14:56:49
recently developed web service client calls android , android connect to the router , the router and the computer , this error is not every day , but occasionally there will be one
but has been reported after the first appearance of this error , close tomcat, restart the computer are not used, this error next time tomcat start up is still being given , unless broken network restart, restart the router , this error will be solved.

The key is that the error is not common, can not debug , the number of occurrences of rare, but once it has been given .
log soaring .
how to catch this exception , and how is this anomaly ,
First, say something, do not look at a few possibilities:
1. server responds , the client firewall is blocking
2 concurrent connections the server exceeded its carrying capacity , some of which will be connected to the server is Down . ;


------ Solution ------------------------------------ --------
this error is due to the browser closes the connection with the tomcat caused .
------ Solution ---------------------------------------- ----
I actually want to say a client ( in most cases is a browser)

After you make sure the connection is closed , there is no interaction it?
not to paste a code look .
------ For reference only -------------------------------------- -

is android connect my service , no browser , just make use of the service , so there is no question browser , android is after I finished reading the response data before closing the connection < . br> ------ For reference only ---------------------------------------

no, this code will not be posted , thank you , and the company finally posted a code to open a csdn immediately to shut , csdn did not get on .
------ For reference only ---------------------------------------
landlord I also appeared this problem , android client access backstage on the error, but always good to download , pc terminal is not being given good . Depressed ah

没有评论:

发表评论