xpra icon
Bug tracker and wiki

Opened 4 months ago

Last modified 3 months ago

#2421 assigned enhancement

detect slow send buffer draining pace using TCP_INFO

Reported by: Antoine Martin Owned by: Antoine Martin
Priority: major Milestone: 4.0
Component: network Version: 3.0.x
Keywords: Cc:

Description (last modified by Antoine Martin)

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()
    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!
        # socket is too slow...


See also #2420

Change History (2)

comment:1 Changed 4 months ago by Antoine Martin

Description: modified (diff)
Status: newassigned

comment:2 Changed 3 months ago by Antoine Martin

Summary: detect slow send buffer drainging pace using TCP_INFOdetect slow send buffer draining pace using TCP_INFO
Note: See TracTickets for help on using tickets.