Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions proxy/core/base/tcp_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ def handle_writables(self, writables: Writables) -> bool:
)
self.client.flush()
if self.must_flush_before_shutdown is True:
teardown = True
self.must_flush_before_shutdown = False
if not self.client.has_buffer():
teardown = True
self.must_flush_before_shutdown = False
return teardown

def handle_readables(self, readables: Readables) -> bool:
Expand Down