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
…1727)

* refactor(bin): move client.rs to client/main.rs

As a preparation to introducing sub-modules to `client`.

Done in a separate commit for git to recognize the move as a move, not as a
remove and add.

* refactor(client): de-duplicate process & run and split into h3 & h09

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.

---------

Co-authored-by: Lars Eggert <[email protected]>
  • Loading branch information
mxinden and larseggert authored Mar 14, 2024
1 parent ce5cbe4 commit 203987a
Show file tree
Hide file tree
Showing 5 changed files with 1,272 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"
bench = false

[[bin]]
Expand Down
Loading

0 comments on commit 203987a

Please sign in to comment.