diff --git a/tests/server/sockfilt.c b/tests/server/sockfilt.c
index d37f9e6a60e66f22d981d11ee4406237ab17eb4d..b59a371d0eca00c74878e9c89dac35745b71e9aa 100644
--- a/tests/server/sockfilt.c
+++ b/tests/server/sockfilt.c
@@ -587,6 +587,8 @@ static bool juggle(curl_socket_t *sockfdp,
   FD_ZERO(&fds_write);
   FD_ZERO(&fds_err);
 
+  FD_SET(fileno(stdin), &fds_read);
+
   switch(*mode) {
 
   case PASSIVE_LISTEN: