Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Ensure URLSessionDataTask response is not dropped #5167

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

Conversation

harlanhaskins
Copy link
Contributor

@harlanhaskins harlanhaskins commented Feb 8, 2025

This code seems to have been attempting to resolve the completed response at the end of the transfer, but it was creating a local copy and mutating that instead of mutating the transfer state we're currently looking at. This seems to happen when a header is truncated? I'm not exactly sure, but this code looked incorrect on inspection.

Still testing this fix locally.

This should fix #4052

We seem to be dropping the response in this case, just ensure we actually save it
after the transfer has completed.
@harlanhaskins harlanhaskins marked this pull request as draft February 8, 2025 18:56
@harlanhaskins
Copy link
Contributor Author

@swift-ci please test

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
1 participant