xpra icon
Bug tracker and wiki

Opened 6 months ago

Closed 2 months ago

#1495 closed enhancement (fixed)

Query availability

Reported by: JAremko Owned by: JAremko
Priority: minor Milestone: 2.1
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 (5)

comment:1 Changed 6 months ago by JAremko

Also it probably should have an async handler.

comment:2 Changed 6 months 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 6 months 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 6 months ago by JAremko (previous) (diff)

comment:4 Changed 6 months 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 5 months ago by Antoine Martin (previous) (diff)

comment:5 Changed 2 months ago by Antoine Martin

Milestone: future2.1
Resolution: fixed
Status: newclosed

Not heard back, closing.

Note: See TracTickets for help on using tickets.