Skip to content

Commit 3d641e3

Browse files
committed
handling buffer errors in protocol more specificially
Signed-off-by: Jesse Jaggars <jjaggars@redhat.com>
1 parent fb9f500 commit 3d641e3

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

receptor/protocol.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ async def watch_queue(self):
5252
while not self.transport.is_closing():
5353
try:
5454
msg = await buffer_obj.get()
55+
except Exception:
56+
logger.exception("Unhandled error when fetch from buffer for %s", self.id)
57+
continue
58+
59+
try:
5560
self.transport.write(msg + DELIM)
5661
except Exception:
5762
logger.exception("Error received trying to write to %s", self.id)

0 commit comments

Comments
 (0)