Stefano Spadola created GUACAMOLE-1926:
------------------------------------------

             Summary: Consecutive window resizes cause a disconnect
                 Key: GUACAMOLE-1926
                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-1926
             Project: Guacamole
          Issue Type: Bug
          Components: guacamole
    Affects Versions: 1.5.4
            Reporter: Stefano Spadola
         Attachments: image-2024-02-26-16-37-43-662.png

I think there is a code regression in 1.5.4 although I haven't had a chance to 
read the code well.

The problem occurs in 1.5.4 but not in 1.5.2 which I was using before migrating.

The problem occurs during an RDP session, with "display-update" set to true, if 
I subsequently resize the window 4/5 times it ends in connection close.

 

I don't use stock guacamole for the client part (javascript) but I use the 
guacamole-common-js libraries to make small customizations.
As regards the js client part, the code is quite simple and is as follows:
{code:java}
const resize_ob = new ResizeObserver((element) => {
    clearTimeout(resize);
    resize = setTimeout(() => {
        ....
        guacamoleClient.sendSize(width, height);
    }, 500);
});{code}
_______

Instead what I have out of the guacd logs is this:
{code:java}
guacd[152]: DEBUG:    Server resized display to 1794x993
guacd[152]: DEBUG:    Server resized display to 1794x867
guacd[152]: DEBUG:    Server resized display to 1794x1006
guacd[29]: INFO:    Connection "$67a2367d-4c6d-4bf5-a6dd-911dedccc85e" removed.
guacd[29]: DEBUG:    Unable to request termination of client process: No such 
process 
guacd[29]: DEBUG:    All child processes for connection 
"$67a2367d-4c6d-4bf5-a6dd-911dedccc85e" have been terminated. {code}
Via browser instead:

!image-2024-02-26-16-37-43-662.png!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to