add semaphore concurrency limit example

This commit is contained in:
Raphael Deem
2017-01-25 13:11:04 -08:00
parent d52f5f0b09
commit c72bcc136c
2 changed files with 38 additions and 2 deletions

View File

@@ -274,8 +274,8 @@ class Sanic:
def run(self, host="127.0.0.1", port=8000, debug=False, before_start=None,
after_start=None, before_stop=None, after_stop=None, ssl=None,
sock=None, workers=1, protocol=HttpProtocol, backlog=100,
stop_event=None, register_sys_signals=True):
sock=None, workers=1, loop=None, protocol=HttpProtocol,
backlog=100, stop_event=None, register_sys_signals=True):
"""
Runs the HTTP Server and listens until keyboard interrupt or term
signal. On termination, drains connections before closing.