Skip to content

Commit 27f93da

Browse files
committed
Return if the stream is nonblocking
If the stream is nonblocking we actually get this invalid packet and should just stop.
1 parent 54b2d78 commit 27f93da

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pymysqlreplication/binlogstream.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ def fetchone(self):
112112
continue
113113

114114
if not pkt.is_ok_packet():
115+
if not self.__blocking:
116+
return None
117+
115118
continue
116119

117120
binlog_event = BinLogPacketWrapper(pkt, self.table_map,

0 commit comments

Comments
 (0)