-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add option for forcing each worker to have separate connection
- Loading branch information
1 parent
b6d8e62
commit 33ff44c
Showing
9 changed files
with
258 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
title: Configuring connection sharing | ||
layout: default | ||
parent: Examples | ||
--- | ||
|
||
# Configuring connection sharing | ||
v3.3.0 | ||
{: .label .label-yellow } | ||
*dnspyre* by default tries to share connections between spawned concurrent workers as much as possible, so for example | ||
if DoH benchmark over HTTPS/2 with multiple concurrent workers is executed, then all the workers will share same single HTTPS/2 connection | ||
to the DNS server | ||
|
||
``` | ||
dnspyre --server https://1.1.1.1 google.com -c 5 --doh-protocol 2 | ||
``` | ||
|
||
If you want to avoid sharing connection between concurrent workers, you can use `--separate-worker-connections` flag | ||
|
||
``` | ||
dnspyre --server https://1.1.1.1 google.com -c 5 --doh-protocol 2 --separate-worker-connections | ||
``` |
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.