-
Notifications
You must be signed in to change notification settings - Fork 60
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
Websocket connection gets lost due to unknown reasons #317
Comments
@trawn-88 I don't see any emails. |
I have send it on Monday to [email protected] |
@trawn-88 no emails, please send it to my gmail. (same username at gmail) |
From the javascript client log:
The server log contains nothing from xpra between these key events:
But, I find it quite odd how some of these server log messages are being duplicated (ie: The second log shows:
This sounds a lot like unexpected EOF - also with a proxy.. To get more information out of the server, you could run it with |
Just in case, i send you more logs. Can you check them as well? Just to be sure |
I am seeing some duplicated messages in the log samples you have sent:
Is this a single session in a container? Does the xpra server get re-spawned somehow? Do you allow concurrent connections? (aka sharing)
In 2 of the events above, the html5 client is booted out because the server is shutting down.
Do you send the BTW, I see a lot of:
You can get rid of these warnings by creating the The client logs don't have any useful messages in them:
But this is different from the previous log sample, which was showing |
Using
The broken connection can show up in random places, depending on when it triggers.
The server will no longer report those as scary errors: Xpra-org/xpra@bad691a As for the client, this shows up as:
Exactly like the one in this bug report. The reconnect should work, unfortunately |
Similar behaviour using an ssh tunnel that can be killed more easily with an exit (or control-d) + control-c:
Open a browser pointing to
The script has to re-start the tunnel quickly otherwise the re-connection hangs. That said, the original query in this ticket is about identifying the cause of the browser's websocket connection Information not included in this ticket that is relevant:
|
Worth adding a link to the error handler for the Lines 2313 to 2320 in 4fc0fea
|
use a much smaller delay so we can more reliably catch the server socket as soon as it is open, only schedule the 'hello' timer check once we've opened the websocket connection
With the commit above, the html5 client handles unavailable server endpoints much more gracefully: it will retry to connect more quickly and does timeout if the server really has gone away. |
Thanks very much! We'll try it. But, as it seems, there are three Proxy-Steps between the Client and the Server. Following your original statement, that a Proxy should be responsible for the connection closure, we are also investigating this possibility |
This looks relevant: https://stackoverflow.com/questions/49408031/websockets-in-chrome-and-firefox-disconnecting-after-one-minute-of-inactivity |
I have also found a bug in the html5 client which prevented application layer |
To make it easier for you to test new versions, I have uploaded |
@trawn-88 if you are able to run xpra 6.2 beta, you could also enable |
I'll give that a try and send you the logs, ok? But it might take a while |
OK, I'm still leaning towards an nginx proxy issue rather than a protocol layer issue, but this may help narrow it down. |
See also #328 |
The change I had made caused a regression: #328 ! I have added some nginx documentation here: |
Our customers are encountering problems with a connection loss. This can happen at the start of Xpra. The Server started, the web-connection was established, but then the connection get lost and you receive a 502 response. I sent you the client and server logs via mail.
On Prod, we’re using:
ubuntu:20.04
XPra:4.4.6
XPra HTML5 Client:8.1
Wine: 8.0.2
On Dev, we’re using:
ubuntu:22.04
XPra:6.1
XPra HTML5 Client:14
Wine: 8.0.2
The text was updated successfully, but these errors were encountered: