[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 6/9] slirp: Send window updates to guest after window
From: |
Samuel Thibault |
Subject: |
[Qemu-devel] [PULL 6/9] slirp: Send window updates to guest after window was closed |
Date: |
Thu, 31 May 2018 21:22:34 +0200 |
From: James Clarke <address@hidden>
If the receive window presented to the guest closes, slirp should send a
window update once the window reopens sufficiently, rather than forcing
the guest to send a window probe, which can take several seconds.
Signed-off-by: James Clarke <address@hidden>
Signed-off-by: Samuel Thibault <address@hidden>
---
slirp/slirp.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/slirp/slirp.c b/slirp/slirp.c
index 4f29753444..5c3bd6163f 100644
--- a/slirp/slirp.c
+++ b/slirp/slirp.c
@@ -678,13 +678,13 @@ void slirp_pollfds_poll(GArray *pollfds, int select_error)
/* continue; */
} else {
ret = sowrite(so);
+ if (ret > 0) {
+ /* Call tcp_output in case we need to send a window
+ * update to the guest, otherwise it will be stuck
+ * until it sends a window probe. */
+ tcp_output(sototcpcb(so));
+ }
}
- /*
- * XXXXX If we wrote something (a lot), there
- * could be a need for a window update.
- * In the worst case, the remote will send
- * a window probe to get things going again
- */
}
/*
--
2.17.0
- [Qemu-devel] [PULL 0/9] slirp updates, Samuel Thibault, 2018/05/31
- [Qemu-devel] [PULL 5/9] net/slirp: Convert atoi to qemu_strtoi to allow error checking, Samuel Thibault, 2018/05/31
- [Qemu-devel] [PULL 8/9] slirp/ncsi: add a "Get Parameters" response, Samuel Thibault, 2018/05/31
- [Qemu-devel] [PULL 7/9] slirp/ncsi: fix "Get Version ID" payload length, Samuel Thibault, 2018/05/31
- [Qemu-devel] [PULL 6/9] slirp: Send window updates to guest after window was closed,
Samuel Thibault <=
- [Qemu-devel] [PULL 4/9] slirp/debug: Print IP addresses in human readable form, Samuel Thibault, 2018/05/31
- [Qemu-devel] [PULL 1/9] slirp: Add domainname option to slirp's DHCP server, Samuel Thibault, 2018/05/31
- [Qemu-devel] [PULL 2/9] slirp: disable Nagle in outgoing connections, Samuel Thibault, 2018/05/31
- [Qemu-devel] [PULL 9/9] slirp/ncsi: add checksum support, Samuel Thibault, 2018/05/31
- [Qemu-devel] [PULL 3/9] slirp: disable Nagle in ingoing connections, Samuel Thibault, 2018/05/31
- Re: [Qemu-devel] [PULL 0/9] slirp updates, no-reply, 2018/05/31