From 55be0686e285e852e915886b3e03b3b797d61ee3 Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Sun, 4 Aug 2024 21:20:53 +0200 Subject: [PATCH] libvncserver/httpd: add comment about client handling shortcomings --- src/libvncserver/httpd.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libvncserver/httpd.c b/src/libvncserver/httpd.c index 96a6eb2b9..2e3579e58 100644 --- a/src/libvncserver/httpd.c +++ b/src/libvncserver/httpd.c @@ -150,6 +150,11 @@ void rfbHttpShutdownSockets(rfbScreenInfoPtr rfbScreen) { /* * httpCheckFds is called from ProcessInputEvents to check for input on the * HTTP socket(s). If there is input to process, httpProcessInput is called. + * TODO When a new client connects, the active HTTP connection is abruptly + * terminated, the ongoing download or data transfer for the active client will + * be cut off because the server closes the socket without waiting for the + * transfer to complete. The new client then takes over the single httpSock, and + * the previous client loses its connection. */ void