Skip to content

Commit 53999d0

Browse files
authored
Hard-code h11 as the option> (#731)
1 parent 806e581 commit 53999d0

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "truss"
3-
version = "0.7.17rc1"
3+
version = "0.7.17rc2"
44
description = "A seamless bridge from model development to model delivery"
55
license = "MIT"
66
readme = "README.md"

truss/templates/control/control/server.py

+4
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ def run(self):
5959
application,
6060
host=application.state.control_server_host,
6161
port=application.state.control_server_port,
62+
# We hard-code the http parser as h11 (the default) in case the user has
63+
# httptools installed, which does not work with our requests & version
64+
# of uvicorn.
65+
http="h11",
6266
)
6367
cfg.setup_event_loop()
6468

truss/templates/server/common/truss_server.py

+4
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,10 @@ def exit_self():
261261
def start(self):
262262
cfg = uvicorn.Config(
263263
self.create_application(),
264+
# We hard-code the http parser as h11 (the default) in case the user has
265+
# httptools installed, which does not work with our requests & version
266+
# of uvicorn.
267+
http="h11",
264268
host="0.0.0.0",
265269
port=self.http_port,
266270
workers=NUM_WORKERS,

0 commit comments

Comments
 (0)