Skip to content

Commit

Permalink
Small set of comments added
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Mar 7, 2019
1 parent 7ce853f commit e7ce9f9
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/appier/base.py
Expand Up @@ -970,10 +970,19 @@ def serve_netius(
)

def refrain_netius(self):
"""
Stops the execution of the current server handled by the netius
infra-structure. Should be able to handle both a single process
environment and also a pre-fork one.
For more information on the netius HTTP servers please refer
to the https://github.com/hivesolutions/netius site.
"""

if self.is_parent():
self._server.stop()
self._server and self._server.stop()
elif self.is_child():
self._pipe("restart")
self._pipe and self._pipe("restart")

def serve_waitress(self, host, port, **kwargs):
"""
Expand Down

0 comments on commit e7ce9f9

Please sign in to comment.