Merge remote-tracking branch 'upstream/master' into remove-stop-event
This commit is contained in:
commit
fc69678206
|
@ -18,3 +18,4 @@ A list of Sanic extensions created by the community.
|
||||||
`Babel` library
|
`Babel` library
|
||||||
- [Dispatch](https://github.com/ashleysommer/sanic-dispatcher): A dispatcher inspired by `DispatcherMiddleware` in werkzeug. Can act as a Sanic-to-WSGI adapter.
|
- [Dispatch](https://github.com/ashleysommer/sanic-dispatcher): A dispatcher inspired by `DispatcherMiddleware` in werkzeug. Can act as a Sanic-to-WSGI adapter.
|
||||||
- [Sanic-OAuth](https://github.com/Sniedes722/Sanic-OAuth): OAuth Library for connecting to & creating your own token providers.
|
- [Sanic-OAuth](https://github.com/Sniedes722/Sanic-OAuth): OAuth Library for connecting to & creating your own token providers.
|
||||||
|
- [Sanic-nginx-docker-example](https://github.com/itielshwartz/sanic-nginx-docker-example): Simple and easy to use example of Sanic behined nginx using docker-compose.
|
||||||
|
|
19
sanic/app.py
19
sanic/app.py
|
@ -597,23 +597,14 @@ class Sanic:
|
||||||
NOTE: This does not support multiprocessing and is not the preferred
|
NOTE: This does not support multiprocessing and is not the preferred
|
||||||
way to run a Sanic application.
|
way to run a Sanic application.
|
||||||
"""
|
"""
|
||||||
<<<<<<< HEAD
|
|
||||||
<<<<<<< df9884de3c7ca6ad248162c8f404afd0ed774359
|
|
||||||
if protocol is None:
|
if protocol is None:
|
||||||
protocol = (WebSocketProtocol if self.websocket_enabled
|
protocol = (WebSocketProtocol if self.websocket_enabled
|
||||||
else HttpProtocol)
|
else HttpProtocol)
|
||||||
=======
|
|
||||||
=======
|
|
||||||
>>>>>>> 2dca53a696064d5f3447484febb2294648b37d1f
|
|
||||||
if stop_event is not None:
|
if stop_event is not None:
|
||||||
if debug:
|
if debug:
|
||||||
warnings.simplefilter('default')
|
warnings.simplefilter('default')
|
||||||
warnings.warn("stop_event will be removed from future versions.",
|
warnings.warn("stop_event will be removed from future versions.",
|
||||||
DeprecationWarning)
|
DeprecationWarning)
|
||||||
<<<<<<< HEAD
|
|
||||||
>>>>>>> remove stop_event
|
|
||||||
=======
|
|
||||||
>>>>>>> 2dca53a696064d5f3447484febb2294648b37d1f
|
|
||||||
server_settings = self._helper(
|
server_settings = self._helper(
|
||||||
host=host, port=port, debug=debug, before_start=before_start,
|
host=host, port=port, debug=debug, before_start=before_start,
|
||||||
after_start=after_start, before_stop=before_stop,
|
after_start=after_start, before_stop=before_stop,
|
||||||
|
@ -629,8 +620,6 @@ class Sanic:
|
||||||
protocol=HttpProtocol, backlog=100, stop_event=None,
|
protocol=HttpProtocol, backlog=100, stop_event=None,
|
||||||
register_sys_signals=True, run_async=False):
|
register_sys_signals=True, run_async=False):
|
||||||
"""Helper function used by `run` and `create_server`."""
|
"""Helper function used by `run` and `create_server`."""
|
||||||
<<<<<<< HEAD
|
|
||||||
<<<<<<< df9884de3c7ca6ad248162c8f404afd0ed774359
|
|
||||||
|
|
||||||
if isinstance(ssl, dict):
|
if isinstance(ssl, dict):
|
||||||
# try common aliaseses
|
# try common aliaseses
|
||||||
|
@ -641,19 +630,11 @@ class Sanic:
|
||||||
context = create_default_context(purpose=ssl.Purpose.CLIENT_AUTH)
|
context = create_default_context(purpose=ssl.Purpose.CLIENT_AUTH)
|
||||||
context.load_cert_chain(cert, keyfile=key)
|
context.load_cert_chain(cert, keyfile=key)
|
||||||
ssl = context
|
ssl = context
|
||||||
|
|
||||||
=======
|
|
||||||
=======
|
|
||||||
>>>>>>> 2dca53a696064d5f3447484febb2294648b37d1f
|
|
||||||
if stop_event is not None:
|
if stop_event is not None:
|
||||||
if debug:
|
if debug:
|
||||||
warnings.simplefilter('default')
|
warnings.simplefilter('default')
|
||||||
warnings.warn("stop_event will be removed from future versions.",
|
warnings.warn("stop_event will be removed from future versions.",
|
||||||
DeprecationWarning)
|
DeprecationWarning)
|
||||||
<<<<<<< HEAD
|
|
||||||
>>>>>>> remove stop_event
|
|
||||||
=======
|
|
||||||
>>>>>>> 2dca53a696064d5f3447484febb2294648b37d1f
|
|
||||||
if loop is not None:
|
if loop is not None:
|
||||||
if debug:
|
if debug:
|
||||||
warnings.simplefilter('default')
|
warnings.simplefilter('default')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user