News:

Facebook killed the radio star. And by radio star, I mean the premise of distributed forums around the internet. And that got got by Instagram/SnapChat. And that got got by TikTok. Where the fuck is the internet we once knew?

Main Menu

Catching Java.net.SocketException Disconnect

Started by Lance, August 13, 2008, 04:22:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Lance

[14:19:37.728] java.net.SocketException: Connection reset
[14:19:37.744] java.net.SocketInputStream.read(Unknown Source)
[14:19:37.790] java.net.SocketInputStream.read(Unknown Source)
[14:19:37.790] bot.PacketThread.run(PacketThread.java:139)
[14:19:57.712] WARNING: Keepalive failed to send: java.net.SocketException: Socket closed


I'm trying to make a plugin to reconnect my bot after it is disconnected like it was above. When I create PluginMain, what do I need to implement so I may have a method availiable to catch it. Furthermore, what method is it? :p

Thanks.
Quote from: Joe
[23:55:31] [william@enterprise ~/Documents/Programming/javaop2]$ svn commit -m 'Tried to fix StayConnected. Again.'
Committed revision 63.
StayConnected strikes back!

iago

I don't think that's the kind of thing that could be done in a plugin, I think it's something in the core.

(disclaimer: I'm not positive)

Lance

Quote from: Joe
[23:55:31] [william@enterprise ~/Documents/Programming/javaop2]$ svn commit -m 'Tried to fix StayConnected. Again.'
Committed revision 63.
StayConnected strikes back!