mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[PR #987] [MERGED] Support undefined CURLoption in libcurl library used in build #1742
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#1742
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/987
Author: @ggtakec
Created: 3/22/2019
Status: ✅ Merged
Merged: 3/22/2019
Merged by: @ggtakec
Base:
master← Head:master📝 Commits (1)
7176603Support undefined CURLoption in libcurl library used in build📊 Changes
3 files changed (+87 additions, -3 deletions)
View changed files
📝
configure.ac(+45 -0)📝
src/curl.cpp(+9 -3)📝
src/curl.h(+33 -0)📄 Description
Relevant Issue (if applicable)
#976 #935
Details
Maintaining an SSL session with CURL will improve performance, and s3fs should use the CURLOPT_TCP_KEEPALIVE, CURLOPT_KEEP_SENDING_ON_ERROR and CURLOPT_SSL_ENABLE_ALPN CURLoptions for curl_easy_setopt().
However, the version of libcurl you use when building may not support these options.
This PR can create s3fs regardless of the version of libcurl used in the build.
That is, if these options are not defined in curl.h, these options will be defined in the s3fs header file and used.
Certainly, defining option values in curl.h to be present in s3fs may not be good, but we expect that libcurl will not change the defined values and assign a fixed value.
So far, this PR allows you to build s3fs without reliance on the libcurl version.
More details
configure output
When you start configure, the following message is output.
It will output "no" if the target option is undefined.
common.h
In this header file, CURLOPT_TCP_KEEPALIVE, CURLOPT_KEEP_SENDING_ON_ERROR and CURLOPT_SSL_ENABLE_ALPN CURLoptions are defined with S3FS prefix.
And s3fs calls curl_easy_setopt () using the S3FS prefix symbol.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.