Skip to content

Rewrite ./botan tls_http_server using Boost Beast#3763

Merged
reneme merged 1 commit intorandombit:masterfrom
Rohde-Schwarz:feature/tls_http_server_on_beast
Oct 26, 2023
Merged

Rewrite ./botan tls_http_server using Boost Beast#3763
reneme merged 1 commit intorandombit:masterfrom
Rohde-Schwarz:feature/tls_http_server_on_beast

Conversation

@reneme
Copy link
Copy Markdown
Collaborator

@reneme reneme commented Oct 17, 2023

Pull Request Dependencies

Description

Using the modernizations of #3764, this re-implements the ./botan tls_http_server using Botan's TLS asio stream and boost Beast with C++20 co-routines.

Currently, in CI this will compile on Windows, macOS and Linux (with GCC). On Linux (with clang) the boost version provided by apt install isn't recent enough to support co-routines. As a result, the ./botan tls_http_server command is not available and the respective tests in test_cli.py are skipped.

Closes #3659.

@coveralls
Copy link
Copy Markdown

coveralls commented Oct 17, 2023

Coverage Status

coverage: 91.692% (-0.002%) from 91.694% when pulling d584520 on Rohde-Schwarz:feature/tls_http_server_on_beast into fa143ad on randombit:master.

@reneme reneme force-pushed the feature/tls_http_server_on_beast branch 6 times, most recently from faa5d3e to 6512476 Compare October 18, 2023 07:49
@reneme reneme requested a review from randombit October 18, 2023 08:03
@reneme reneme self-assigned this Oct 18, 2023
@reneme reneme marked this pull request as ready for review October 18, 2023 08:04
@reneme reneme force-pushed the feature/tls_http_server_on_beast branch from 6512476 to 3c016ac Compare October 18, 2023 08:12
Copy link
Copy Markdown
Owner

@randombit randombit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't have time for a full review right now. Generally a fine idea (the existing HTTP "parser" is 😭 so happy to see that go)

@reneme reneme force-pushed the feature/tls_http_server_on_beast branch from 3c016ac to aaac73e Compare October 18, 2023 12:20
@reneme
Copy link
Copy Markdown
Collaborator Author

reneme commented Oct 18, 2023

Rebased after #3764 got merged.

@reneme reneme force-pushed the feature/tls_http_server_on_beast branch from aaac73e to e8bf4a2 Compare October 18, 2023 14:32
@reneme reneme requested a review from lieser October 24, 2023 08:51
@lieser lieser added this to the Botan 3.3.0 milestone Oct 24, 2023
@reneme reneme force-pushed the feature/tls_http_server_on_beast branch 2 times, most recently from f346301 to cc73f00 Compare October 25, 2023 14:00
Copy link
Copy Markdown
Owner

@randombit randombit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks looks good and a very nice improvement. Also a good way of testing the waters re coroutines

@reneme reneme force-pushed the feature/tls_http_server_on_beast branch from cc73f00 to 9da30e0 Compare October 26, 2023 18:07
Co-Authored-By: Fabian Albert <fabian.albert@rohde-schwarz.com>
@reneme reneme force-pushed the feature/tls_http_server_on_beast branch from 9da30e0 to d584520 Compare October 26, 2023 18:23
@reneme
Copy link
Copy Markdown
Collaborator Author

reneme commented Oct 26, 2023

Also a good way of testing the waters re coroutines

Its definitely nice to see that coroutines pretty much "just worked" with the existing code base. I'm super happy to see this fall into place so nicely.

@reneme reneme merged commit 5f502c6 into randombit:master Oct 26, 2023
@reneme reneme deleted the feature/tls_http_server_on_beast branch October 26, 2023 19:52
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.

Rewrite ./botan tls_http_server using the ASIO stream

4 participants