I assume a stoned server is one that is overloaded and not responding.
Agreed, a timeout should be used. Connection semantics for Martyr
should really be cleaned up, ideas?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Just using .setSoTimeout() might be enough. But martyr
doesn't handle SocketTimeOutException. (I haven't looked
though).
I guess the timeout is reset after each read though so if
you just set it to 10 or 15 minutes it might work fine
without extra handling as long as martyr handles the
SocketTimeout and sets state to disconnected and allows
AutoReconnect to reconnect.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=843977
I assume a stoned server is one that is overloaded and not responding.
Agreed, a timeout should be used. Connection semantics for Martyr
should really be cleaned up, ideas?
Logged In: NO
Just using .setSoTimeout() might be enough. But martyr
doesn't handle SocketTimeOutException. (I haven't looked
though).
I guess the timeout is reset after each read though so if
you just set it to 10 or 15 minutes it might work fine
without extra handling as long as martyr handles the
SocketTimeout and sets state to disconnected and allows
AutoReconnect to reconnect.