Broken pipe (Java, Apache Mina)
I have a problem using Apache Mina with flash (client/server game).
When user closes his browser process v开发者_如何学Pythonia task manager (or Flash player in IDE), server throws infinitely exceptions "Java.io.BrokenPipe".
Changing O/S TCP/IP settings (keep-alive) didn't work.
The server is repeatedly try to write to the socket and ignoring the broken pipe exception. It should close its end of the socket in response to the exception.
when you receive the broken pipe exception in your IoHandler, you need to close the session. The remote peer connection is dead.
精彩评论