Error can not connect to wss://... but access in localhost_access_log

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

tanaelt
Posts: 5
Joined: 22 Oct 2021, 07:39

Error can not connect to wss://... but access in localhost_access_log

Postby tanaelt » 07 Sep 2022, 09:03

Hi, Recently our server have issue:
1. From client side there are error user can not connect to production server wss://
2. From server side, in log, localhost_access_log there are many error 400, ie: see attachment

So basically user can connect to the production server but there are many error 400 like in logs/http/localhost_access_log and the user can not connect to the sfs since no log in smartfox.log

What is the cause of this and how to fix ?

[url]
https://ibb.co/NpxS5gm
[/url]


edit: we found it seem the issue cause by many user try to connect+login at the same time and after the user successfully login they change tap and connect+login again at the different tab.
And sfs need time to disconnect+connect the user, at the same time another user try to login and failed because the disc+conn process still.

edit: after more research we found the time from client browser after init command sfs.connect to the DateTime in localhost_access_log is range between 19-24 second. Is this normal ?

to exactly sure please clarify is the DateTime in localhost_access_log is time when the BlueBox/WebServer receive the data packet from client ?
User avatar
Lapo
Site Admin
Posts: 23007
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Error can not connect to wss://... but access in localhost_access_log

Postby Lapo » 08 Sep 2022, 09:20

Hi,
it seems like this post is a copy of this:
viewtopic.php?f=18&t=28716
and the relative private message that also mentions the same issues.

If you are from the same team, please avoid spamming with similar requests. It's best to stick with one thread.

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
tanaelt
Posts: 5
Joined: 22 Oct 2021, 07:39

Re: Error can not connect to wss://... but access in localhost_access_log

Postby tanaelt » 08 Sep 2022, 10:29

yea sorry. :)

Return to “SFS2X Questions”

Who is online

Users browsing this forum: Google [Bot] and 54 guests