-
Notifications
You must be signed in to change notification settings - Fork 729
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganize win/linux + has_capture support
Reorganize the way the async lookups are done to better support the choices of different osen (linux, windows, and HAS_CAPTURE). Make the previously statics related to curl lookups, docker paths, etc. members of docker_async_source, now that it's a long-lived object outside of any docker::resolve(). New methods init_docker_conn()/free_docker_conn() are OS-specific and for linux handle initializing the m_curl handle and destroying it. Move the inspector to the docker_async_source constructor as an inspector exists at the time the docker_async_source is created. Pass failures in docker_async_source back to the docker caller via a m_successful. If not successful, future docker lookups are disabled. Instead of compiling out the curl handles when HAS_CAPTURE is false, always compile the code for them but don't even attempt any lookups in docker::resolve. Note that docker_async_source::get_docker no longer changes behavior based on HAS_CAPTURE.
- Loading branch information
Showing
4 changed files
with
101 additions
and
75 deletions.
There are no files selected for viewing
This file contains 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 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 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 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