[MapServer-users] WFS requests cause hanging mapserv processes

Troels Arvin troels at arvin.dk
Wed Apr 29 04:28:37 PDT 2026


Hello,

I have a problem with mapserv processes sometimes hanging forever when 
runing WFS requests.

For example, in the map file, the following may appear:

...

   layer
     name "external_buildings"
     status off
     type polygon
     connectiontype WFS
     connection 
"https://kort.digitaleplaner.dk/wfs/XXXXXXX/?servicename=wfs"
     metadata
       "wfs_version" "1.0.0"
       "wfs_request_method" "GET"
       "wfs_filter" 
"<PropertyIsEqualTo><PropertyName>bevaringsvaerdi</PropertyName><Literal>1</Literal></PropertyIsEqualTo>"
       "wfs_srsname" "25832"
       "wfs_typename" "foo:bar"
     end
     projection
       "init=epsg:25832"
     end

...

At the time of writing, one such hanging process has for more than two 
hours held open a TCP connection into an HTTPS server at Amazon Web 
Services. The process is writing to a temporary file which has not grown 
for more than two hours.

This is Mapserver 7.6.

Can map files be equipped with HTTP request timeouts, or in some other 
way make mapserv processes give up on long-running HTTP requests?

-- 
Regards,
Troels Arvin





More information about the MapServer-users mailing list