xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Ticket #1424: test-slow-send.patch

File test-slow-send.patch, 659 bytes (added by Antoine Martin, 4 years ago)

make it easier to test slow network and packet aggregation in client receiver code

  • xpra/net/protocol.py

     
    591591                    if not self._closed:
    592592                        log.error("Error on write start callback %s", start_cb, exc_info=True)
    593593            while buf and not self._closed:
    594                 written = con.write(buf)
     594                written = con.write(buf[:1024])
     595                import time
     596                time.sleep(0.05)
    595597                if written:
    596598                    buf = buf[written:]
    597599                    self.output_raw_packetcount += 1