Here on my beach in Romania with my decaying HP netbook I often have a lousy connection yet I still like to spend time in Stack Exchange chatrooms.
But when my connection gets sketchy I often get the
retry/cancel message in chat when something I said failed to go through. So I trust it and click it. Sometimes I start to get a series of posts that didn't go through all prompting. Sometimes I have to retry many times before they go through.
But then when the connection gets a bit more reliable I see that more than one of my comments went through:
This makes me think some of the code which decides whether to show the
retry/cancel prompt is in fact detached from the code which detects whether in fact a post from a user was successfully sent to the server.
I'm sure there can be some tricky race conditions and timeouts firing just before an Ajax call responds etc. But hey a bug is a bug. Can't you also check for duplicate messages if not all the time then at least after issuing the