xpra icon
Bug tracker and wiki

Opened 7 weeks ago

Last modified 6 weeks ago

#1495 new enhancement

Query availability

Reported by: JAremko Owned by: JAremko
Priority: minor Milestone: future
Component: html5 Version: trunk
Keywords: Cc:

Description

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)

Change History (4)

comment:1 Changed 7 weeks ago by JAremko

Also it probably should have an async handler.

comment:2 Changed 7 weeks ago by Antoine Martin

Owner: changed from Antoine Martin to JAremko

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.

comment:3 in reply to:  2 Changed 7 weeks ago by 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?

Last edited 7 weeks ago by JAremko (previous) (diff)

comment:4 Changed 7 weeks ago by 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.

Last edited 6 weeks ago by Antoine Martin (previous) (diff)
Note: See TracTickets for help on using tickets.