Message13160

Author r_walter
Recipients amak, behackett, kasemir, r_walter
Date 2021-08-24.16:16:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1629821786.13.0.625540492763.issue2618@roundup.psfhosted.org>
In-reply-to
Content
Try this to replace sendall in _socket.py. This worked for me and https://bugs.jython.org/issue2894

    # Fix for 64k not working https://github.com/gbach/jython/commit/759c042bbf3d38a761430d3a671e2cdf4a1bf61f
    def sendall(self, data, flags=0):
        chunk_size = 8192
        length = len(data)
        data_view = memoryview(data)
        idx = 0
        while idx < length:
            bytes_sent = self.send(data_view[idx:idx + chunk_size], flags=flags)
            idx += bytes_sent
History
Date User Action Args
2021-08-24 16:16:26r_waltersetmessageid: <1629821786.13.0.625540492763.issue2618@roundup.psfhosted.org>
2021-08-24 16:16:26r_waltersetrecipients: + r_walter, amak, behackett, kasemir
2021-08-24 16:16:26r_walterlinkissue2618 messages
2021-08-24 16:16:26r_waltercreate