Go to file
Victor Vazquez 3f67c21ba8
Fix the end of chunk parsing (#1403)
While parsing a chunked response with the curl HTTP transport adapter, there was an issue for parsing the last chunk.
As soon as the end of chunk data was found ("0") the adapter was returning and setting the session state as if the transfer was completed.
However, the HTTP RFC for chunked data (https://tools.ietf.org/html/rfc7230#section-4.1) defines that there is a CRLF after the last chunk info.

By not reading the last CRLF from the response, and if the connection was re-used right after reading the last chunk made the next request to get the `CRLF` as the first part for the response, making the parser crash.

The fix in this PR makes sure that when the last chunk is found and parsed, the CRLF is also parsed from the response to make sure that the response data transfer has completed

fixes: #1396
2021-01-20 05:57:45 +00:00
.github Move the PR template up a directory so that it shows up by default. (#1182) 2020-12-14 22:21:42 +00:00
cmake-modules Move the default transport adapter assignation to the source (#1206) 2020-12-18 02:13:03 +00:00
doc docs for the HTTP transport adapter (#1285) 2021-01-08 16:16:09 -08:00
eng Update error message in tools repo (#1405) 2021-01-19 21:34:30 -08:00
samples Replaced relative link with absolute links and remove locale (#668) 2020-09-17 22:28:36 -07:00
sdk Fix the end of chunk parsing (#1403) 2021-01-20 05:57:45 +00:00
.clang-format Retry policy (#241) 2020-07-10 00:23:40 -07:00
.gitignore Adding http request (#41) 2020-03-26 11:38:07 -07:00
CMakeLists.txt Feature/keyvault - GetKey + KeyVaultCommon (#1383) 2021-01-15 16:50:44 -08:00
CMakeSettings.json Add WinHTTP Transport support to the SDK for windows clients as another HTTP Transport. (#897) 2020-12-10 22:00:52 +00:00
CODE_OF_CONDUCT.md Initial CODE_OF_CONDUCT.md commit 2020-01-10 15:45:21 -08:00
CONTRIBUTING.md Make CI fail if there are clang format errors (#1328) 2021-01-20 01:09:29 +00:00
LICENSE.txt update main root license to be txt (#888) 2020-11-04 17:03:15 +00:00
README.md enable license link (#915) 2020-11-06 11:55:59 -08:00
SECURITY.md Replaced relative link with absolute links and remove locale (#668) 2020-09-17 22:28:36 -07:00

Azure SDK for C++

Build Status

This repository is for active development of the Azure SDK for C++. For consumers of the SDK we recommend visiting our public developer docs or our versioned developer docs.

Getting started

To get started with a library, see the README.md file located in the library's project folder. You can find these library folders grouped by service in the /sdk directory.

For tutorials, samples, quick starts, and other documentation, go to Azure for C++ Developers.

Packages available

Each service might have a number of libraries available from each of the following categories:

Client: New Releases

New wave of packages that we are announcing as GA and several that are currently releasing in beta. These libraries follow the Azure SDK Design Guidelines for C++ and share a number of core features such as HTTP retries, logging, transport protocols, authentication protocols, etc., so that once you learn how to use these features in one client library, you will know how to use them in other client libraries. You can learn about these shared features at Azure::Core.

These new client libraries can be identified by the naming used for their folder, package, and namespace. Each will start with azure, followed by the service category, and then the name of the service. For example azure-storage-blobs.

For a complete list of available packages, please see the latest available packages page.

NOTE: If you need to ensure your code is ready for production we strongly recommend using one of the stable, non-beta libraries.

Client: Previous Versions

Last stable versions of packages that are production-ready. These libraries provide similar functionalities to the beta packages, as they allow you to use and consume existing resources and interact with them, for example: upload a storage blob. They might not implement the guidelines or have the same feature set. They do however offer wider coverage of services.

Need help

Navigating the repository

Master branch

The master branch has the most recent code with new features and bug fixes. It does not represent latest released beta or GA SDK.

Release branches (Release tagging)

For each package we release there will be a unique git tag created that contains the name and the version of the package to mark the commit of the code that produced the package. This tag will be used for servicing via hotfix branches as well as debugging the code for a particular beta or stable release version. Format of the release tags are <package-name>_<package-version>. For more information please see our branching strategy.

Contributing

For details on contributing to this repository, see the contributing guide.

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, view Microsoft's CLA.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Many people all over the world have helped make this project better. You'll want to check out:

Reporting security issues and security bugs

Security issues and bugs should be reported privately, via email, to the Microsoft Security Response Center (MSRC) secure@microsoft.com. You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Further information, including the MSRC PGP key, can be found in the Security TechCenter.

License

Azure SDK for C++ is licensed under the MIT license.

Impressions