-
Notifications
You must be signed in to change notification settings - Fork 150
Converted WinHTTP to Async. #4015
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
Merged
Merged
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
de0409b
Async WinHTTP
LarryOsterman 8da47ee
Added cancellation test; added support for request cancellation.
LarryOsterman e48f66f
Added header for requests
LarryOsterman 6bff722
Fixed deadlock when TLS error happens
LarryOsterman 4a76919
FIxed accidentally changed timeout
LarryOsterman a37968f
Cleaned up some comments and headers
LarryOsterman 5c5c63a
CSpell and fixed UWP build issue
LarryOsterman 1539336
Update sdk/core/azure-core/CMakeLists.txt
LarryOsterman b85b2b8
Update sdk/core/azure-core/src/http/winhttp/win_http_transport.cpp
LarryOsterman 25b2ff5
Update sdk/core/azure-core/src/http/winhttp/win_http_transport.cpp
LarryOsterman e1eaa35
Update sdk/core/azure-core/src/http/winhttp/win_http_transport.cpp
LarryOsterman 8e14296
Update sdk/core/azure-core/src/http/winhttp/win_http_transport.cpp
LarryOsterman 7a217e2
Update sdk/core/azure-core/src/http/winhttp/win_http_request.hpp
LarryOsterman 14e0c86
Update sdk/core/azure-core/src/http/winhttp/win_http_request.hpp
LarryOsterman 8d41533
Update sdk/core/azure-core/src/http/winhttp/win_http_transport.cpp
LarryOsterman 768bfc6
Improved discoverability of tests; handle exceptions thrown during te…
LarryOsterman c695b02
Merge branch 'larryo/asyncwinhttp' of https://github.com/LarryOsterma…
LarryOsterman 01d7904
clang-format
LarryOsterman cba73d3
clang-format
LarryOsterman 2b67738
Merge branch 'main' into larryo/asyncwinhttp
LarryOsterman 3b40e8b
Undid bad merge
LarryOsterman 3f23d74
Use sigabrt handler to report any thrown exceptions
LarryOsterman 9dc8514
clang-format
LarryOsterman ec7577f
Update sdk/core/azure-core/src/http/winhttp/win_http_request.hpp
LarryOsterman 015c846
Update sdk/core/azure-core/src/http/winhttp/win_http_request.hpp
LarryOsterman 684c013
Update sdk/core/azure-core/src/http/winhttp/win_http_request.hpp
LarryOsterman 9b45291
pull request feedback
LarryOsterman aea5284
Merge branch 'larryo/asyncwinhttp' of https://github.com/LarryOsterma…
LarryOsterman 12dd753
Pull request feedback
LarryOsterman 57c50fb
More pull request feedback
LarryOsterman 807a3cf
clang-format
LarryOsterman ae10a3f
Added more control over what events cause requests to complete
LarryOsterman 68530e8
Pull request feedback
LarryOsterman 2084eab
Update sdk/core/azure-core/inc/azure/core/internal/diagnostics/global…
LarryOsterman 1a349d9
clang-format
LarryOsterman 7068ca0
Merge branch 'larryo/asyncwinhttp' of https://github.com/LarryOsterma…
LarryOsterman e3e4cae
clang-format, again
LarryOsterman 2e270fb
Don't set the complete event until after the mutex is released
LarryOsterman 6c8ac5b
Added a bit of comments
LarryOsterman d431631
Swap out twiter.com for wikipedia.org
LarryOsterman d673a49
Cannot use wikipedia on CI pipeline
LarryOsterman 2dfa186
Fixed aws url
LarryOsterman b013c05
Comment changes from pull request feedback
LarryOsterman 10148f8
Update sdk/core/azure-core/src/http/winhttp/win_http_request.hpp
LarryOsterman a8573e0
pull request feedback
LarryOsterman f29c866
Merge branch 'larryo/asyncwinhttp' of https://github.com/LarryOsterma…
LarryOsterman 53af4ee
Bumped test discovery timeout
LarryOsterman 8d00d34
Update sdk/core/azure-core/src/http/winhttp/win_http_transport.cpp
LarryOsterman beac2fb
More pull request feedback
LarryOsterman 1086aae
Merge branch 'larryo/asyncwinhttp' of https://github.com/LarryOsterma…
LarryOsterman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -73,6 +73,7 @@ | |
| "HKEY", | ||
| "HRESULT", | ||
| "IMDS", | ||
| "immutability", | ||
| "Intel", | ||
| "itfactor", | ||
| "iusg", | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
sdk/core/azure-core/inc/azure/core/internal/diagnostics/global_exception.hpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // SPDX-License-Identifier: MIT | ||
|
|
||
| #pragma once | ||
| #include <exception> | ||
| #include <iostream> | ||
|
|
||
| namespace Azure { namespace Core { namespace Diagnostics { namespace _internal { | ||
| /** | ||
| * @brief Global Exception handler used for test collateral. This is not intended to be used by | ||
| * any non-test code. | ||
| * | ||
| * The GlobalExceptionHandler class is used to catch any unhandled exceptions and report them as a | ||
| * part of test collateral, it is intended to be called as a SIGABRT handler set by: | ||
| * | ||
| * ``` | ||
| * signal(SIGABRT, Azure::Core::Diagnostics::_internal::GlobalExceptionHandler); | ||
| * ``` | ||
| * | ||
| */ | ||
| struct GlobalExceptionHandler | ||
| { | ||
| static void HandleSigAbort(int) | ||
| { | ||
| // Rethrow any exceptions on the current stack - this will cause any pending exceptions to | ||
| // be thrown so we can catch them and report them to the caller. This is needed because the | ||
| // terminate() function on Windows calls abort() which normally pops up a modal dialog box | ||
| // after which it terminates the application without reporting the exception. | ||
| try | ||
| { | ||
| throw; | ||
| } | ||
| catch (std::exception const& ex) | ||
| { | ||
| std::cerr << "SIGABRT raised, exception: " << ex.what() << std::endl; | ||
| } | ||
| } | ||
| }; | ||
| }}}} // namespace Azure::Core::Diagnostics::_internal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.