Menu

#5 Stoned servers

open
Ben Damm
None
7
2012-10-15
2003-10-28
No

martyr doesn't detect and/or take action if a server is
stoned. Leaving the bot useless until you force it to
reconnect.

Perhaps using Socket.setSoTimeout() would be enough to
detect this?

Discussion

  • Ben Damm

    Ben Damm - 2003-11-12

    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?

     
  • Nobody/Anonymous

    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.

     

Log in to post a comment.

MongoDB Logo MongoDB