Also outs your report publicly, nice !

  • idunnololz@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    23 days ago

    As someone who implement a Lemmy client it might be a client side problem. If the server is struggling you will time out when sending the comment. If the client side has any sort of retry logic it will send the comment again. This can cause the comment to be posted multiple times. There might be a bug on the server as well but I know for sure it can be caused by the client.

    • dev_null@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      23 days ago

      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.

    • Draconic NEO@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      0
      ·
      23 days ago

      They should do what Reddit does and by default make a 5 second rate limit of sending posts and comments, the first one gets accepted, the next ones get rejected within the 5 second ratelimit.