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

CPLHTTPFetch(): ignore SSL/TLS errors about non-properly terminated connections #6561

Merged
merged 1 commit into from
Oct 21, 2022

Conversation

rouault
Copy link
Member

@rouault rouault commented Oct 20, 2022

@jgrocha
Copy link
Contributor

jgrocha commented Oct 20, 2022

When the error is different then those related to SSL, the message might not be very helpful ("You may set the CPL_CURL_IGNORE_ERROR..." )

Example (using a server listed on our tests):

ogrinfo 'WFS:https://sampleserver6.arcgisonline.com/arcgis/services/SampleWorldCities/MapServer/WFSServer?service=WFS&version=2.0.0&request=GetFeature&typename=esri:World&count=1'
INFO: Open of `WFS:https://sampleserver6.arcgisonline.com/arcgis/services/SampleWorldCities/MapServer/WFSServer?service=WFS&version=2.0.0&request=GetFeature&typename=esri:World&count=1'
      using driver `WFS' successful.
Metadata:
  TITLE=WFS
ERROR 1: Empty content returned by server
ERROR 1: HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2). You may set the CPL_CURL_IGNORE_ERROR configuration option to YES to try to ignore it.
ERROR 1: Error returned by server : HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2) (92)
ERROR 1: Empty content returned by server
1: esri:World (title: World)

It is just a comment. There is no problem is showing the message, even if it does not apply.

@jgrocha
Copy link
Contributor

jgrocha commented Oct 20, 2022

I've checkout out this PR and it runs fine on my side.

@rouault rouault merged commit 726036c into OSGeo:master Oct 21, 2022
rouault added a commit that referenced this pull request Oct 21, 2022
rouault added a commit that referenced this pull request Oct 21, 2022
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

Successfully merging this pull request may close these issues.

2 participants