• Jan Kiszka's avatar
    slirp: Signal free input buffer space to io-thread · 86073017
    Jan Kiszka authored
    This massively accelerates slirp reception speed: If data arrives
    faster than the guest can read it from the input buffer, the file
    descriptor for the corresponding socket was taken out of the fdset for
    select. However, the event of the guest reading enough data from the
    buffer was not signaled. Thus, the io-thread only noticed this change
    on the next time-driven poll. Fix this by kicking the io-thread as
    Signed-off-by: default avatarJan Kiszka <jan.kiszka@siemens.com>
sbuf.c 3.99 KB