Skip to content

Commit

Permalink
fix the diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone committed May 10, 2024
1 parent dd7a8d6 commit ef3ac58
Showing 1 changed file with 30 additions and 26 deletions.
56 changes: 30 additions & 26 deletions internal/enginenetx/DESIGN.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,32 +94,32 @@ we assume that the proxy knows how to do circumvention.
2. othwerwise, we compose policies as illustrated by the following diagram:

```
+---------------+ +-----------------+
| statsPolicyV2 | | bridgesPolicyV2 |
+---------------+ +---------------+ +-----------------+
| dnsPolicy | | |
+---------------+ | P | F
| | |
V V V
+-------------------+ +------------------------+
| testHelpersPolicy | | mixPolicyInterleave<3> |
+-------------------+ +------------------------+
| |
| P | F
| |
V V
+--------------+ +------------------------+
| userPolicyV2 | | mixPolicyInterleave<3> |
+--------------+ +------------------------+
| |
| P | F
| |
V V
+-------------------+
| mixPolicyEitherOr |
+-------------------+
|
V
+---------------+ +-----------------+
| statsPolicyV2 | | bridgesPolicyV2 |
+------------------+ +---------------+ +-----------------+
| dnsPolicy | | |
+------------------+ | P | F
| | |
V V V
+-------------------+ +----------------------------------+
| testHelpersPolicy | | mixPolicyInterleave<3> |
+-------------------+ +----------------------------------+
| |
| P | F
| |
V V
+--------------+ +--------------------------------------+
| userPolicyV2 | | mixPolicyInterleave<3> |
+--------------+ +--------------------------------------+
| |
| P | F
| |
V V
+-----------------------------------+
| mixPolicyEitherOr |
+-----------------------------------+
|
V
```

**Diagram 1.** Sequence of policies constructed when not using a proxy.
Expand Down Expand Up @@ -565,3 +565,7 @@ did for the [httpclientx](../httpclientx/) package.
field for a tactic. We are currently not using this field as we rewrite
the happy eyeballs delay unconditionally. Perhaps, we should keep the original
field value when reading user policies, to give users more control.

7. We should consider using existing knowledge from the stats to change
the SNI being used when using the DNS. This would make our knowledge about
what is working and not working much more effective than now.

0 comments on commit ef3ac58

Please sign in to comment.