Skip to content
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

Handling 'cancel' requests #325

Open
ghobona opened this issue Nov 29, 2022 · 3 comments
Open

Handling 'cancel' requests #325

ghobona opened this issue Nov 29, 2022 · 3 comments
Labels
2022-11 Sprint Guide Part 1 Applicable to Part 1 Core

Comments

@ghobona
Copy link
Contributor

ghobona commented Nov 29, 2022

During the 2022 Web Mapping Code Sprint there was a demonstration by @IvanSanchez of a map being moved and the client application sending 'cancel' requests to the server as the map was being moved. The client application was sending 'cancel' requests as the map was being moved. This is a useful capability because it notifies the server that the request that it is trying to fulfil is no longer needed and is being canceled.

The context was OGC API - Maps, however it might be that support for 'cancel' requests is relevant to other OGC API Standards.

Should OGC API - Maps support cancel operations?

If so, what should such a capability look like?

@IvanSanchez
Copy link

On the technical side (and AFAIK), a "cancel" operation will look like a premature TCP disconnect.

In other words: At the very least, a server can be sure that a client is no longer interested in response data if the client has closed the underlying TCP connection.

Now: this can happen willingly (a web browser changing the src of an <img> before the previous image was fully transferred) or unwillingly (a computer disconnecting from the network, or a network failure)

@jerstlouis
Copy link
Member

jerstlouis commented Nov 29, 2022

In our client we have implemented support for canceling requests for tiles no longer into view.
As far as I know, the specification dosn't really need to say anything about this, it is part of the HTTP specification (EDIT: Actually it is a TCP Reset, not HTTP).
But it is good to bring awareness of this.

@joanma747
Copy link
Contributor

@joanma747 joanma747 transferred this issue from opengeospatial/ogcapi-maps Feb 9, 2023
@joanma747 joanma747 added the Guide label Feb 9, 2023
@jerstlouis jerstlouis added the Part 1 Applicable to Part 1 Core label Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2022-11 Sprint Guide Part 1 Applicable to Part 1 Core
Projects
Development

No branches or pull requests

4 participants