How to handle Socket Exception ideally?

Posted by cbz on Stack Overflow See other posts from Stack Overflow or by cbz
Published on 2010-03-25T10:18:36Z Indexed on 2010/03/25 10:23 UTC
Read the original article Hit count: 357

Hi, I'm using socket for chat application and I get SocketException unexpectedly. How this exception should ideally be handled? I'm currently simply reconnecting socket. How to make sure my socket is live on application level? I'm aware of method setKeepAlive

© Stack Overflow or respective owner

Related posts about java

Related posts about sockets