Also outs your report publicly, nice !

you are viewing a single comment's thread
view the rest of the comments
[–] 25 points 2 years ago* (last edited 2 years ago) (1 child)

It's what you are describing, and it's not a client problem. It's impossible for a client to solve. You can't tell whether a timed out request succeeded or not.

Idempotent network requests are a standard feature of many APIs - sending the same request multiple times should result in only one action being performed, but Lemmy doesn't support them yet.

So yes, it's "caused" by retries, but the bug is that the backend doesn't properly support retries. Clients don't do anything wrong.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 2 years ago* (1 child)

    It could/should be handled by the server but it's technically possible for the client to make due without it. You would need to handle it very carefully. For instance on timeouts, you can issue a get request to see if the comment posted. If it did then you do not issue another post.

  • source
  • parent
  • hideshow 2 child comments