See When TCP sockets refuse to die:
An example of checking the draining pace: while True: notsent1 = get_tcp_info(c).tcpi_notsent_bytes notsent1_ts = time.time() ... poll.poll(POLL_PERIOD) ... notsent2 = get_tcp_info(c).tcpi_notsent_bytes notsent2_ts = time.time() pace_in_bytes_per_second = (notsent1 - notsent2) / (notsent2_ts - notsent1_ts) if pace_in_bytes_per_second > 12000: # pace is above effective rate of 96Kbps, ok! else: # socket is too slow...
Using TCP_INFO.
See also #2420
See also ticket:
Based on socket.py (Wrapper module for _socket, providing some additional facilities): r27690 adds TCP_INFO
to xpra info.
See also : Congestion detection by observing socket queues.
Next step: figure out how to detect congestion faster using this new data.
See also #3001
this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/2421