Skip to content

Delete CurlRequestPrivateData#2

Merged
vicroms merged 3 commits intovicroms:link-libcurlfrom
BillyONeal:remove-CurlRequestPrivateData
Oct 30, 2025
Merged

Delete CurlRequestPrivateData#2
vicroms merged 3 commits intovicroms:link-libcurlfrom
BillyONeal:remove-CurlRequestPrivateData

Conversation

@BillyONeal
Copy link

Code review comments, will be posted to microsoft#1660

std::vector<CurlRequestPrivateData> private_data;
private_data.reserve(urls.size());
std::vector<WriteFilePointer> write_pointers;
write_pointers.reserve(urls.size());
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this reserve is now load bearing to avoid the vector reallocating and changing the addresses of the WriteFilePointers. Might be worth a comment.

@vicroms vicroms merged commit bc7816e into vicroms:link-libcurl Oct 30, 2025
6 checks passed
@BillyONeal BillyONeal deleted the remove-CurlRequestPrivateData branch November 10, 2025 21:59
vicroms added a commit that referenced this pull request Nov 18, 2025
* add and link libcurl

* Replace curl executable with libcurl API calls

* Fix FindLibCURL for builds wihthout network access

* Remove winHttp

* Restore progress function

* Handle non-dl transfer progress

* Remove unused WinHttp code

* Format and regenerate messages

* Fix exepected console output of end-to-end test for multiple authoritative URLs in Windows

* Remove unused parameter

* Remove unused parameters 2

* Format and regenerate messages

* Fix curl info read loop

* Fix warnings and remove unused messages

* Update src/vcpkg/binarycaching.cpp

Co-authored-by: Billy O'Neal <bion@microsoft.com>

* Delete CurlRequestPrivateData (#2)

* PR comments WIP

* Format and regenerate messages

* Fix download retry

* More review comments

* Handle response code from file:// downloads/

* Update end-to-end test expected output

* Fix download progress

* Add curl license and notices

* Fix call to upload metrics

* Fix expected output comparison with newer versions of libcurl

* Fix expected output comparison with newer versions of libcurl

* Apply suggestions from code review

Co-authored-by: Billy O'Neal <bion@microsoft.com>
Co-authored-by: Thomas1664 <46387399+Thomas1664@users.noreply.github.com>

* More PR comments

* Disable curl examples and fix out-of-bounds access in retry loop

---------

Co-authored-by: Alexander Neumann <30894796+Neumann-A@users.noreply.github.com>
Co-authored-by: Billy O'Neal <bion@microsoft.com>
Co-authored-by: Thomas1664 <46387399+Thomas1664@users.noreply.github.com>
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