-
Notifications
You must be signed in to change notification settings - Fork 3
feat: replace Encrypted/Plain clients with foxy library #39
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
cwaldren-ld
merged 22 commits into
main
from
cw/sc-199702/foxy-eventsource-asio-requester
May 5, 2023
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
beb76b5
add foxy library
cwaldren-ld 37f21e4
update read timeouts
cwaldren-ld 75cafe1
refactor timeouts
cwaldren-ld 1341857
move everything back to milliseconds; update foxy method
cwaldren-ld 717d330
Merge branch 'main' into cw/sc-199702/foxy-eventsource
cwaldren-ld b1a63d7
remove ability to shutdown streaming event source
cwaldren-ld c28e803
broken trying to fix AsioRequestor to use foxy
cwaldren-ld 87306b1
Merge branch 'main' into cw/sc-199702/foxy-eventsource
cwaldren-ld 35e67b4
Revert "broken trying to fix AsioRequestor to use foxy"
cwaldren-ld 4602fef
point to launchdarkly/foxy repo
cwaldren-ld 4b32c99
update to read SSE body only on successful HTTP response
cwaldren-ld 98e4d3e
get asio requester working with foxy; remove Encrypted/Plain clients
cwaldren-ld f9c5eac
remove certify.cmake in favor of foxy::certify
cwaldren-ld ad5cda4
fix some CMakeLists.txt CMP0135 errors
cwaldren-ld f1c368b
properly disable foxy tests
cwaldren-ld e8c7d2d
remove obsolete commented out code
cwaldren-ld f74aaac
temporary test to see if I've fixed gtest
cwaldren-ld 5b6479f
don't be as clever when detecting https
cwaldren-ld f4b25e5
simplify EventBatch::Target()
cwaldren-ld d806930
make closing SSE socket cleaner
cwaldren-ld 071cb9e
add back in SSE client close to streaming data source
cwaldren-ld 8527468
change my-bool-flag in hello-app back to my-boolean-flag
cwaldren-ld 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
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 was deleted.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| cmake_minimum_required(VERSION 3.11) | ||
|
|
||
| include(FetchContent) | ||
|
|
||
| if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.24") | ||
| # Affects robustness of timestamp checking on FetchContent dependencies. | ||
| cmake_policy(SET CMP0135 NEW) | ||
| endif () | ||
|
|
||
|
|
||
| FetchContent_Declare(foxy | ||
| GIT_REPOSITORY https://github.com/launchdarkly/foxy.git | ||
| GIT_TAG 7f4ac0495ad2ed9cd0eca5994743d677ac1d2636 | ||
| ) | ||
|
|
||
|
|
||
| set(BUILD_TESTING OFF) | ||
| FetchContent_MakeAvailable(foxy) | ||
| set(BUILD_TESTING ON) |
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The TODO here is because the SSE stream has a heartbeat, so it's not quite the same as a generic HTTP request read timeout.
For instance, it might be appropriate to have a 10 second read timeout on a poll request or whatever, but that could be too short/long for the heartbeat.
I don't know if the heartbeat interval is actually documented anywhere. Will look.