On Wed, Jan 5, 2022 at 9:55 AM Andreas Matheus / Secure Dimensions <
[email protected]> wrote:

> Each request binds resources until the GeoPackage is complete.
> Cancellation is not possible. If the GeoPKG production takes too long, the
> user may “click” again and again and again and thereby cause binding of
> resources for completing the same request that perhaps is still in progress
> (but defunct). The fact that the client is no longer able to consume the
> response (either connection timeout or user cancelled the request) is found
> out only after the GeoPackage is fully produced and to be send to the
> client (IO Exception as socket is closed). Until then, all necessary
> resources of the thread (CPU, Memory, diskspace) are bound to produce a
> GeoPackage for nothing…
>

Agree on the issue, but I would not be so bleak about it. GeoServer WFS has
had SHAPE-ZIP output format in core for almost as long as WFS existed,
and it shares the same limit, it can only be used for smaller downloads.
If that turns into a problem, then I'd argue WFS is mis-configured: there
is a maximum feature count setting in WFS, which can be used
to limit the size of the generated GeoPackage to a reasonable size
(defaults to one million, maybe a bit too much :-D ).
Of course you would not be able to download a large dataset in a single
request, but that's why WFS provides paging.

Download of large packages as single files should definitely be done via
WPS async requests (but even there, you cannot
force a client to make a async request, the client is in control, not the
server).

-- 

Regards,

Andrea Aime

==
GeoServer Professional Services from the experts!

Visit http://bit.ly/gs-services-us for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions Group
phone: +39 0584 962313

fax:     +39 0584 1660272

mob:   +39  333 8128928

https://www.geosolutionsgroup.com/

http://twitter.com/geosolutions_it

-------------------------------------------------------

Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE
2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si
precisa che ogni circostanza inerente alla presente email (il suo
contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
operazione è illecita. Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is
addressed and may contain information that is privileged, confidential or
otherwise protected from disclosure. We remind that - as provided by
European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
e-mail or the information herein by anyone other than the intended
recipient is prohibited. If you have received this email by mistake, please
notify us immediately by telephone or e-mail
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to