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

Mapcache forgets env var CURL_CA_BUNDLE after first request #345

Open
dafvid opened this issue Nov 22, 2024 · 0 comments
Open

Mapcache forgets env var CURL_CA_BUNDLE after first request #345

dafvid opened this issue Nov 22, 2024 · 0 comments

Comments

@dafvid
Copy link

dafvid commented Nov 22, 2024

Duplicate post to my comment on the original issue to set env vars from config.

Old but still open issue. I can confirm this works fine. For the first request! Are there something somewhere inside mapcache that clears the environment between requests? It seems like it.

System
Windows server 2022
IIS 10 + mapcache fast cgi

Steps to reproduce:

  1. Set CURL_CA_BUNDLE
  2. Make first request
  3. Witness one single tile being fetched from a HTTPS-only WMS
  4. Make a second request
  5. Recieve a SSL certificate problem: unable to get local issuer certificate
  6. Restart/kill the fastcgi server
  7. Goto 2

If i set the fast cgi to reload after just one request everything works but obviously VERY slow. So my best guess is that the environment get reset between request and the part that sets environment variables only does so on startup.

Originally posted by @dafvid in #251 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant