I have simple servlet on JBoss 5.1. When writing response a have no exception if connection closed. Connection closed by read timeout, from outside.
JBoss receives FIN, ACK, answers with ACK and after several seconds sends my response (PSH,ACK) and receives RST.
How to determine in servlet, that connection is closed and/or response is not writtеn successfully?