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

Add the ability to set some additional curlopt values #1126

Merged
merged 2 commits into from
Sep 7, 2018
Merged

Conversation

DennisHeimbigner
Copy link
Collaborator

Add the ability to set some additional curlopt values via .daprc (aka .dodsrc).
This effects both DAP2 and DAP4 protocols.

Related issues:
[1] re: esupport: KOZ-821332
[2] re: github issue Unidata/netcdf4-python#836
[3] re: github issue #1074

The specific new CURLOPT options are as follows:

  1. CURLOPT_BUFFERSIZE: Relevant to [1]. Allow user to set the read/write
    buffersizes used by curl.
    This is done by adding the following to .daprc (aka .dodsrc):
    HTTP.READ.BUFFERSIZE=n
    where n is the buffersize in bytes. There is a built-in (to curl)
    limit of 512k for this value.

  2. CURLOPT_TCP_KEEPALIVE (and CURLOPT_TCP_KEEPIDLE and CURLOPT_TCP_KEEPINTVL):
    Relevant (maybe) to [2] and [3]. Allow the user to turn on KEEPALIVE
    This is done by adding the following to .daprc (aka .dodsrc):
    HTTP.KEEPALIVE=on|n/m
    If the value is "on", then simply enable default KEEPALIVE. If the value
    is n/m, then enable KEEPALIVE and set KEEPIDLE to n and KEEPINTVL to m.

@WardF WardF merged commit 7514d7f into master Sep 7, 2018
@WardF WardF deleted the dapcurlopt.dmh branch September 7, 2018 22:58
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.

None yet

2 participants