-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(enginenetx): use the new HTTPSDialer (#1295)
This commit refactors how we construct the *Network used by the OONI engine so that the HTTPSTransport we use relies on the new HTTPSDialer as opposed to using netxlite's TLS dialing facilities. This new HTTPSDialer has been specifically written to integrate TCP and TLS dialing and facilitate circumvention. The current implementation uses a "null" policy which makes it roughly equivalent to the previous behavior, at least functionally, tough we are now doing a variation of happy eyeballs where to try to ~aggressively dial more connections as we see that previous connections fail to dial. Specifically, if a TLS connection has not succeded within 300 milliseconds (probably a low value?), then we attempt dialing with another available IP address. The new code documents extensively what we are doing and some current limitations, including references to the tracking issues. This also diff fixes two issues we discovered when integrating the HTTPSDialer with the rest of OONI Probe: 1. #1295 (comment) 2. #1295 (comment) While there, use `log.Log` more frequently in testing to interpret what is going wrong. Part of ooni/probe#2531
- Loading branch information
1 parent
a0f51b7
commit accd0cc
Showing
16 changed files
with
184 additions
and
70 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
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
Oops, something went wrong.