Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change: update hyper to version 1 #1563

Merged
merged 4 commits into from
Feb 1, 2024
Merged

Change: update hyper to version 1 #1563

merged 4 commits into from
Feb 1, 2024

Conversation

nichtsfrei
Copy link
Member

This changes the underlying version of hyper to version 1.

The run methods is moved to controller. This hypothetically allows us to
run a complete server within tests.

When TLS is enabled, which should be the case for all production
environments, then it will use http2. On http it uses http1 so that it
is more convenient to use with curl.

The stream handling of results and oids is changed to channel and chunks
as it is easier to understand and requires less code then our previous
Stream approach.

The handling of TLS and insecure mode are now more separated, although
this results in wet code with a few duplication it is believed to be
easier to change when there is a problem within one mode but not the
other.

The client identifier handling is also changed, rather then using
wrapper upon wrapper we use a global arc in run and reset per request.

@nichtsfrei nichtsfrei marked this pull request as ready for review January 31, 2024 09:43
@nichtsfrei nichtsfrei requested a review from a team as a code owner January 31, 2024 09:43
@nichtsfrei nichtsfrei force-pushed the openvasd-hyper-hyper branch 2 times, most recently from 334d6eb to 7ad11ce Compare January 31, 2024 14:55
jjnicola
jjnicola previously approved these changes Feb 1, 2024
nichtsfrei and others added 2 commits February 1, 2024 10:59
This changes the underlying version of hyper to version 1.

The run methods is moved to controller. This hypothetically allows us to
run a complete server within tests.

When TLS is enabled, which should be the case for all production
environments, then it will use http2. On http it uses http1 so that it
is more convenient to use with curl.

The stream handling of results and oids is changed to channel and chunks
as it is easier to understand and requires less code then our previous
Stream approach.

The handling of TLS and insecure mode are now more separated, although
this results in wet code with a few duplication it is believed to be
easier to change when there is a problem within one mode but not the
other.

The client identifier handling is also changed, rather then using
wrapper upon wrapper we use a global arc in run and reset per request.
@nichtsfrei nichtsfrei merged commit 7bfe3ee into main Feb 1, 2024
24 of 26 checks passed
@nichtsfrei nichtsfrei deleted the openvasd-hyper-hyper branch February 1, 2024 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants