开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜