Okay, but how does BoincTasks know when to discard the Messages list and start over? I mean when something like this happens:
So basically I'm wondering that there's no way for BoincTasks to detect a client restart and refresh it's message buffer in a situation like this?
What happens if BoincTasks asks for messages from 11 and instead gets a response that there are only messages 1-5 in the buffer? Does it clear it's old messages in this case?
- Computer B has messages 1-10, which BoincTasks running on Computer A is showing on it's Messages tab.
- Computer A gets hang and doesn't retrieve messages for few minutes.
- Meanwhile Computer B gets restarted and starts storing messages from 1. It now has a new buffer of messages 1-15.
- Computer A recovers and BoincTasks asks for messages starting from 11 and gets messages 11-15 from the new messages buffer. It happily appends them to the old buffer of 1-10 and thus creating the original problem.
So basically I'm wondering that there's no way for BoincTasks to detect a client restart and refresh it's message buffer in a situation like this?
What happens if BoincTasks asks for messages from 11 and instead gets a response that there are only messages 1-5 in the buffer? Does it clear it's old messages in this case?