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

Remove content length from put to enable chunked #88

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

djw8605
Copy link
Collaborator

@djw8605 djw8605 commented Oct 10, 2023

Removing the content length from a put changes the upload style from full file upload to a chunked encoded upload. A full file upload causes go to read in the entire file in memory while uploading, chunked does not.

NOTE chunked uploads only work after xrootd has merged and put into production xrootd/xrootd#2102

Removing the content length from a put changes the upload style from
full file upload to a chunked encoded upload.  A full file upload causes
go to read in the entire file in memory while uploading, chunked does not.
@djw8605 djw8605 requested a review from matyasselmeci October 10, 2023 18:23
djw8605 added a commit to djw8605/pelican that referenced this pull request Oct 10, 2023
Removing the content length from a put changes the upload style from full file upload to a chunked encoded upload. A full file upload causes go to read in the entire file in memory while uploading, chunked does not.

**NOTE** chunked uploads only work after xrootd has merged and put into production xrootd/xrootd#2102

Corresponds to htcondor/osdf-client#88
@matyasselmeci
Copy link
Collaborator

What will happen when this talks to a server that doesn't have the #2102 fix? Is there any backward compat work that needs to be done to talk to older servers?

@djw8605
Copy link
Collaborator Author

djw8605 commented Oct 11, 2023

Possibly, also being discussed over on PelicanPlatform/pelican#208

Can add a check on server version, though, that would take another request to the server. I feel like there are no great options.

bbockelm pushed a commit to djw8605/pelican that referenced this pull request Dec 1, 2023
Removing the content length from a put changes the upload style from full file upload to a chunked encoded upload. A full file upload causes go to read in the entire file in memory while uploading, chunked does not.

**NOTE** chunked uploads only work after xrootd has merged and put into production xrootd/xrootd#2102

Corresponds to htcondor/osdf-client#88
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