uProxy-p2p icon indicating copy to clipboard operation
uProxy-p2p copied to clipboard

Potential race condition with sign-in and sign-in error message

Open scouttle opened this issue 12 years ago • 2 comments

Just chatted a bit with @dborkan, who seemed to have a couple theories on what might be going on...

  • I clicked the sign-in button.
  • I took a screenshot of the resultant sign-in popup window, and did some processing of the image. (This induced a bit of a delay from uProxy's perspective.)
  • I entered my (correct) credentials in the popup and hit "sign in".
  • I opened the uProxy extension, which was unchanged.
  • After several seconds, I got an error message saying there was a problem with sign-in.
  • I clicked the sign-in button in the uProxy window again.
  • No sign-in window appeared, but I was immediately signed in... the uProxy UI changed my buddies showed up instantaneously!

scouttle avatar Jul 02 '14 15:07 scouttle

so user probably clicked log in twice, first one started the flow and second was rejected (I think we should remove this notification, 2 lines), and the other one timed out.

I think core connector could drop duplicate requests and also implement timeouts, not sure if it's easy though, because when you're dropping a timed out request, you need to revert the state in case request went half way through.

salomegeo avatar Jul 03 '14 05:07 salomegeo

Closing this as we've since redone the login flow using tabs. However we do have a related issue: https://github.com/uProxy/uproxy/issues/328 (problems logging in if the user closes the login tab)

dborkan avatar Oct 13 '14 19:10 dborkan