Skip to content

Commit

Permalink
wip: Resolve process hangs during shutdown.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcass77 committed Aug 5, 2020
1 parent 919327e commit 3ac27c6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions wtfix/apps/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,23 +228,21 @@ async def listen(self):
data
) # Process logout message in the pipeline as per normal

raise e

else:
logger.error(
f"{self.name}: Unexpected EOF waiting for next chunk of partial data "
f"'{utils.decode(e.partial)}' ({e})."
)

raise e
asyncio.create_task(self.pipeline.stop())

except LimitOverrunError as e:
# Buffer limit reached before a complete message could be read - abort!
logger.error(
f"{self.name}: Stream reader buffer limit exceeded! ({e})."
)

raise e
asyncio.create_task(self.pipeline.stop())

async def on_send(self, message):
"""
Expand Down

0 comments on commit 3ac27c6

Please sign in to comment.