Xpra: Ticket #1495: Query availability

I think it will be useful if html Client could ask server if it is ready to accept new connections with a as fast as possible request and without actually trying to connect to the server. It could be used to toggle GUI elements on a web page (like "connect" button)



Tue, 11 Apr 2017 16:22:45 GMT - JAremko:

Also it probably should have an async handler.


Wed, 12 Apr 2017 14:24:25 GMT - Antoine Martin: owner changed

If you can get a response from it, then it is ready.

Just load the favicon for example. Use an XMLHttpRequest with a low timeout.


Wed, 12 Apr 2017 15:04:02 GMT - JAremko:

Replying to Antoine Martin:

If you can get a response from it, then it is ready.

Just load the favicon for example. Use an XMLHttpRequest with a low timeout.

But what if the server already has a client that doesn't want to share or what if the server is shutting down/starting?


Thu, 13 Apr 2017 05:27:32 GMT - Antoine Martin:

But what if the server already has a client that doesn't want to share

Well, that's a new requirement added to this ticket only now. Try r15583: hit the "/Info" URL on your xpra http server. The information provided at that URL must be limited as the connection is unauthenticated. It may still change. (maybe adding the authentication requirements would be helpful for the UI)

or what if the server is shutting down/starting?

For as long as the server is available, it will handle the connection. It will not accept new connection when starting or shutting down.


Thu, 20 Jul 2017 17:09:34 GMT - Antoine Martin: status, milestone changed; resolution set

Not heard back, closing.


Sat, 23 Jan 2021 05:25:51 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1495