diff mbox series

[Bug,1914117] Re: Short files returned via FTP on Qemu with various architectures and OSes

Message ID 161295568661.28988.4275406897326730736.malone@soybean.canonical.com (mailing list archive)
State New, archived
Headers show
Series [Bug,1914117] Re: Short files returned via FTP on Qemu with various architectures and OSes | expand

Commit Message

Chris Pinnock Feb. 10, 2021, 11:14 a.m. UTC
This is NOT a fix but we can get working FTPs again with this patch -
narrowing into where the problem is. Looks like the behaviour of this
code is different on macOS to other OSes.
diff mbox series

Patch

--- slirp.c.orig	2021-02-08 21:05:20.000000000 +0000
+++ slirp.c	2021-02-10 11:00:00.000000000 +0000
@@ -621,18 +621,7 @@ 
              * This will soread as well, so no need to
              * test for SLIRP_POLL_IN below if this succeeds
              */
-            if (revents & SLIRP_POLL_PRI) {
-               ret = sorecvoob(so);
-               if (ret < 0) {
-                   /* Socket error might have resulted in the socket being
-                     * removed, do not try to do anything more with it. */
-                    continue;
-                }
-            }
-            /*
-             * Check sockets for reading
-             */
-            else if (revents & 
+            if (revents & 
                      (SLIRP_POLL_IN | SLIRP_POLL_HUP | SLIRP_POLL_ERR)) {
                 /*
                  * Check for incoming connections