Skip to content

Commit 56ab0fd

Browse files
Merge pull request #134 from romuald/eof-packet-reset-status
Close connection on EOF packet
2 parents 449e50f + a909a96 commit 56ab0fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pymysqlreplication/binlogstream.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ def fetchone(self):
249249
continue
250250

251251
if pkt.is_eof_packet():
252+
self.close()
252253
return None
253254

254255
if not pkt.is_ok_packet():

0 commit comments

Comments
 (0)