File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -538,8 +538,10 @@ async def serve_gunicorn(
538538 args = [
539539 "--bind=127.0.0.1:0" ,
540540 "--workers=4" ,
541- "--worker-class=gevent" ,
541+ "--worker-class=gthread" ,
542+ "--threads=16" ,
542543 "--reuse-port" ,
544+ "--keep-alive=0" ,
543545 ]
544546 if certfile :
545547 args .append (f"--certfile={ certfile } " )
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ dev = [
4444 " hypercorn==0.17.3" ,
4545 " granian==2.5.7" ,
4646 " grpcio-tools==1.76.0" ,
47- " gunicorn[gevent] ==23.0.0" ,
47+ " gunicorn==23.0.0" ,
4848 " just-bin==1.42.4; sys_platform != 'win32'" ,
4949 " pyright[nodejs]==1.1.405" ,
5050 " pyvoy==0.2.0" ,
Original file line number Diff line number Diff line change @@ -574,14 +574,14 @@ def _response_stream(
574574 yield body
575575 except Exception as e :
576576 error = e
577- finally :
578- yield _end_response (
579- writer .end (
580- ctx .response_trailers (),
581- ConnectWireError .from_exception (error ) if error else None ,
582- ),
583- send_trailers ,
584- )
577+
578+ yield _end_response (
579+ writer .end (
580+ ctx .response_trailers (),
581+ ConnectWireError .from_exception (error ) if error else None ,
582+ ),
583+ send_trailers ,
584+ )
585585
586586
587587def _consume_single_request (stream : Iterator [_REQ ]) -> _REQ :
You can’t perform that action at this time.
0 commit comments