Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Safari doesn't logout from a chat on refresh #25

Open
catap opened this issue Jul 29, 2021 · 2 comments
Open

Safari doesn't logout from a chat on refresh #25

catap opened this issue Jul 29, 2021 · 2 comments

Comments

@catap
Copy link
Contributor

catap commented Jul 29, 2021

An environment:

  • Safari 14.1.1 (16611.2.7.1.4) on macOS 11.4 (20F71);
  • g8 template with root d72db85.

A step to reproduce:

  • create a new project by sbt new UdashFramework/udash.g8;
  • start it by sbt compile compileStatics run;
  • open safari and go to a page;
  • log in;
  • refresh a page;
  • log in one more time;
  • see that number of connected users is 2.

The video:

Screen-Recording-2021-07-28-at-21.12.00.mov

The issue doesn't appear on Firefox, but it appears on Safari Technology Preview 127 (Safari 15.0, WebKit 16612.1.18.11.3).

@mereszeta
Copy link

This is probably related to poor support of WebSocket in Safari(especially close events). Not sure yet whether it's something we can work around(without much overhead), needs more investigation.

@catap
Copy link
Contributor Author

catap commented Aug 2, 2021

@mereszeta let me share a pcap with traffic from safari.

dump.pcap.zip

I've refreshed a page a few times, and before re-login to websocket on backed safari had closed a connection.

I feel that it is a bug in chat application or atmoshere or somewhere else on this stack. Why? Because when connection is closed a counter should be decreased.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants