Skip to content
This repository has been archived by the owner on May 8, 2023. It is now read-only.

Commit

Permalink
Fix repeatedly copying data
Browse files Browse the repository at this point in the history
  • Loading branch information
lgfrbcsgo committed Aug 2, 2020
1 parent a75f89d commit c115132
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mod_async_server/async_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def send(self, data):

@async_task
def _do_send(self, data):
data = memoryview(data)
while data:
try:
bytes_sent = self._sock.send(data[:512])
Expand Down

0 comments on commit c115132

Please sign in to comment.