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

HTTP/3 Support #2378

Merged
merged 74 commits into from
Jun 27, 2022
Merged
Changes from 1 commit
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
f1c2d0e
WIP to begin http3
ahopkins Dec 12, 2021
027c8e0
Merge conflicts
ahopkins Dec 26, 2021
34fe437
Merge branch 'main' of github.com:sanic-org/sanic into http3
ahopkins Dec 26, 2021
a937977
WIP
ahopkins Dec 27, 2021
6a65222
WIP
ahopkins Dec 27, 2021
fa69294
Merge main conflicts into HTTP/3
ahopkins Jan 16, 2022
a43ae38
Merge pull request #2379 from sanic-org/http3-conflict
ahopkins Jan 16, 2022
c852406
Add aioquic and HTTP auto
ahopkins Jan 16, 2022
70a3a6f
Merge branch 'http3' of github.com:sanic-org/sanic into http3-startup
ahopkins Jan 17, 2022
65459fd
WIP
ahopkins Jan 17, 2022
cab7453
Add multi-serve for http3 and http1
ahopkins Jan 19, 2022
1bb80ba
Add spinner on startup delay
ahopkins Jan 20, 2022
96a746e
Merge branch 'main' of github.com:sanic-org/sanic into http3-startup
ahopkins Jan 20, 2022
6e3e5f1
Better exception
ahopkins Feb 17, 2022
64d4419
Add alt-svc header touchup
ahopkins Feb 17, 2022
97158d8
Add altsvs
ahopkins Feb 17, 2022
13ee4c4
Allow for TLS certs to be created on HTTP/1.1 dev servers
ahopkins Feb 21, 2022
80cc6a2
Add deprecation notice
ahopkins Feb 21, 2022
bb1bf66
Cleanup TODOs
ahopkins Feb 21, 2022
e193714
Merge pull request #2380 from sanic-org/http3-startup
ahopkins Feb 22, 2022
e447751
Cleanup merge conflicts
ahopkins Feb 22, 2022
65c02e2
Cleanup merge conflicts
ahopkins Feb 22, 2022
964e0b0
Cleanup merge conflicts
ahopkins Feb 22, 2022
067316a
Merge branch 'main' of github.com:sanic-org/sanic into http3
ahopkins Feb 22, 2022
d26d79c
Add TLS password to config
ahopkins Feb 23, 2022
06035c8
Move HTTP streaming events to receiver
ahopkins Feb 23, 2022
2262c69
Streaming send
ahopkins Feb 24, 2022
517d7d5
Setup response headers
ahopkins Feb 24, 2022
8b090f2
Merge branch 'main' of github.com:sanic-org/sanic into http3-flow
ahopkins Feb 27, 2022
b66b460
Merge conflicts
ahopkins May 11, 2022
35bbdfe
Logging
ahopkins May 11, 2022
199d6ea
Move verbosity filtering to logger
ahopkins May 11, 2022
7eb64bb
Merge branch 'main' of github.com:sanic-org/sanic into verbosity
ahopkins May 11, 2022
e98a631
Fix verbosity test on ASGI
ahopkins May 11, 2022
4d2afed
Add Sanic color
ahopkins May 11, 2022
cccf536
Merge conflicts
ahopkins May 11, 2022
425182c
WIP
ahopkins May 12, 2022
46af59b
merge conflict
ahopkins May 23, 2022
9045719
Finish flow
ahopkins May 24, 2022
92d2f41
Merge pull request #2403 from sanic-org/http3-flow
ahopkins May 24, 2022
0e85218
Merge branch 'main' of github.com:sanic-org/sanic into http3
ahopkins Jun 15, 2022
171dabb
Merge branch 'main' of github.com:sanic-org/sanic into http3
ahopkins Jun 16, 2022
dd96f1a
Get regular tests running again
ahopkins Jun 16, 2022
15d654c
Add trustme certs (#2468)
ahopkins Jun 16, 2022
c944291
Merge conflicts
ahopkins Jun 19, 2022
191d5c5
Add some unit tests
ahopkins Jun 19, 2022
872b58f
Add some unit tests
ahopkins Jun 19, 2022
1222d11
Change relative import of test client
ahopkins Jun 19, 2022
d1ddbca
TLS creators tests
ahopkins Jun 19, 2022
c2792eb
Update tests
ahopkins Jun 19, 2022
9572091
clenup
ahopkins Jun 19, 2022
1c9a037
Add TLS creator tests
ahopkins Jun 20, 2022
000a166
Add TLS creator selection test
ahopkins Jun 20, 2022
ec33f8a
Remove unneeded files
ahopkins Jun 20, 2022
f1cfc34
Cleanup config tests
ahopkins Jun 20, 2022
53bf127
Add some typeing
ahopkins Jun 20, 2022
d228ae3
Remove unnecessary coverage
ahopkins Jun 20, 2022
a8c65fc
Reduce duplicate code in server runners
ahopkins Jun 20, 2022
84fd7e0
Remove unnecessary inits
ahopkins Jun 20, 2022
b64c5b6
Remove unnecessary inits
ahopkins Jun 20, 2022
bb68e28
Fix some typing and linting issues
ahopkins Jun 20, 2022
ed840a2
Expand test coverage
ahopkins Jun 20, 2022
3d37a92
Cleanup existing tests
ahopkins Jun 20, 2022
9111f93
Increase testing coverage
ahopkins Jun 20, 2022
689c830
Add connection info and transport details
ahopkins Jun 21, 2022
ceee998
Fix 3.7 and 3.8 tests
ahopkins Jun 21, 2022
44b6b72
Fix 3.7
ahopkins Jun 21, 2022
d8c1424
Merge branch 'main' of github.com:sanic-org/sanic into http3
ahopkins Jun 26, 2022
089a8d2
Better typing and error message
ahopkins Jun 26, 2022
2f244c1
Remove unnecessary __version__
ahopkins Jun 26, 2022
ea00532
Only allow stream_id on HTTP/3
ahopkins Jun 26, 2022
93ca605
Cleanup sanic-routing imports
ahopkins Jun 26, 2022
96042fc
Setup mock test for HTTP/3 send headers
ahopkins Jun 26, 2022
653343c
Merge branch 'main' into http3
ahopkins Jun 27, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove unnecessary coverage
  • Loading branch information
ahopkins committed Jun 20, 2022
commit d228ae3ab9aa2c2913c48f85e8e639c51b1dce7a
8 changes: 4 additions & 4 deletions sanic/http/tls/creators.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
try:
import trustme

TRUSTME_INSTALLED = True
TRUSTME_INSTALLED = True # noqa
except (ImportError, ModuleNotFoundError):
TRUSTME_INSTALLED = False

Expand Down Expand Up @@ -108,11 +108,11 @@ def __init__(self, app, key, cert) -> None:
self.cert_path = _make_path(cert, self.tmpdir)

@abstractmethod
def check_supported(self) -> None:
def check_supported(self) -> None: # no cov
...

@abstractmethod
def generate_cert(self, localhost: str) -> ssl.SSLContext:
def generate_cert(self, localhost: str) -> ssl.SSLContext: # no cov
...

@classmethod
Expand Down Expand Up @@ -230,7 +230,7 @@ def generate_cert(self, localhost: str) -> ssl.SSLContext:
finally:

@self.app.main_process_stop
async def cleanup(*_):
async def cleanup(*_): # no cov
if self.tmpdir:
with suppress(FileNotFoundError):
self.key_path.unlink()
Expand Down