Finally I was able to increase the buffer size for the websockets/guacd: -I had to recompile the angular frontend -I configured the tunnel to a bigger buffer size in my websocket implementation -Created my own fork of the guacamole client/server java libraries so I was able to update some configuration parameters -Recompiled guacd to support new buffer size
So, I've increased 3 times the buffer, but instead of increasing the speed.. this decreased the speed by more or less 3 times Before these changes I had a upload/download speed of 15Mbps (more or less) With the mentioned changed, I only get 5Mbps Nothing more to do here. Thanks, hope it helps someone On 2022/06/17 06:50:33 "Frco. Javier Rial" wrote: > I'm trying to increase the buffer size for sending the blobs through the > websocket, but I'm failing to do > > I've configured the tunnel to have bigger size (I'm trying to multiply by 3 > the size of these vars) > > Java backend that instantiates the tunnel > session.setMaxBinaryMessageBufferSize(24576); > session.setMaxTextMessageBufferSize(24576); > > without previous modification, if I send a big blob, the tunnel gets > disconnected immediately > > and also modified src code of guacd to change some parameters > > #define GUAC_PROTOCOL_BLOB_MAX_LENGTH 18144 > #define GUAC_INSTRUCTION_MAX_LENGTH 24576 > > and in the frontend (angular), I send slices of > > const STREAM_BLOB_SIZE = 18144; > > When I drop a file in the UI I can see the file request for the tunnel, > then the ack with the stream begin message, then the UI uploads the first > slice of the data but the ACK from guacd nevers cames in > and there is not any error in the guacd logs (even in debug mode) > > Any advice, please > > Best regards > On 2022/06/13 14:50:24 "Frco. Javier Rial" wrote: > > Hi all: > > > > I want to ask you how do you deal with uploading files to the remote > > machine? > > > > I mean, I've developed my custom guacamole application, and using the > > guacamole client functions to upload files through the websocket > > (blobwriter/reader and sending blob, waiting for acks and so on). > > > > But the upload speed is super slow. > > > > Any advice or other alternative methods that can be used ?? > > > > I really like the option to upload them through the websocket because this > > way I only have a dependency related with the websocket for all kind of > > communication with the remove server. > > >
