Commit a2a93f4
committed
Remove cold-start latency from the VPN by blocking
Previously, if there was no data available the VPN would pause
for 100ms, because the connection was non-blocking. This adds
~50ms to request startup whenever the connection goes quiet,
which is pretty noticeable! This tiny change and that goes
away (ping over wifi is now ~10ms vs 4ms direct).1 parent 94a6613 commit a2a93f4
File tree
2 files changed
+2
-1
lines changed- app/src/main/java/tech/httptoolkit/android
2 files changed
+2
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
| |||
0 commit comments