Skip to content

Commit

Permalink
refactor(client): de-duplicate process & run and split into h3 & h09
Browse files Browse the repository at this point in the history
The Neqo Client binary supports both http3 and http09 (prev. "old").

Before this commit both the http3 and the http09 implementation had their own
`run` and `process` `fn`, orchestrating the interaction between handler, client
and I/O. While similar, they had subtle differences e.g. when to terminate.

This commit splits the http3 and http09 specific logic into two separate modules,
but extracts duplicate logic (e.g. `run` and `process`) into the shared root module.
  • Loading branch information
mxinden committed Mar 10, 2024
1 parent d897122 commit 6f4b243
Show file tree
Hide file tree
Showing 5 changed files with 1,274 additions and 1,278 deletions.
2 changes: 1 addition & 1 deletion neqo-bin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ license.workspace = true

[[bin]]
name = "neqo-client"
path = "src/bin/client.rs"
path = "src/bin/client/main.rs"

[[bin]]
name = "neqo-server"
Expand Down
Loading

0 comments on commit 6f4b243

Please sign in to comment.