[ 
https://issues.apache.org/jira/browse/GUACAMOLE-1214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17234741#comment-17234741
 ] 

Jimmy edited comment on GUACAMOLE-1214 at 11/18/20, 3:54 PM:
-------------------------------------------------------------

[~mjumper]

I modified some code to test two cases.
 * directly call the readNextChunk() in the guacamole client.
 * call the guac_protocol_send_ack() in the clipboard module of the guacamole 
server.

 

So, when copying the image with a large size from the client to the remote 
computer, the speed of transferring clipboard data is different according to 
whether directly call readNextChunk() without "ack" response or call 
readNextChunk() based on "ack" response.

*That's, the former case is faster than the latter case.*


was (Author: myjimmy):
[~mjumper]

Also, when copying the image with a large size from the client to the remote 
computer, the speed of transferring clipboard data is different according to 
whether directly call readNextChunk() without "ack" response or call 
readNextChunk() based on "ack" response.

*That's, the former case is faster than the latter case.*

> When sending data more than 6048 bytes, the readNextChunk() function is 
> called only once in BlobWriter.sendBlob()
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: GUACAMOLE-1214
>                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-1214
>             Project: Guacamole
>          Issue Type: Bug
>          Components: guacamole-client
>    Affects Versions: 1.2.0
>            Reporter: Jimmy
>            Priority: Major
>         Attachments: image-2020-11-17-09-25-16-947.png, 
> image-2020-11-17-09-27-14-470.png
>
>
> Because I need to investigate the solution of the copy/paste of an image, I 
> modified some code related to the clipboard.
> When I click the guacamole client page after copy the image, the 
> ManagedClient.setClipboard() function is called to send the blob of the image 
> to the guacamole server.
> !image-2020-11-17-09-25-16-947.png!
> When the size of data to be sent is more than 6048 bytes, the readNextChunk() 
> function is called only once in BlobWriter.sendBlob().
> Because arrayBufferWriter.onack() isn't called.
> !image-2020-11-17-09-27-14-470.png!
> So, only the 6048 bytes are sent in the whole data.
>  
> I think that to directly call readNextChunk() after call of 
> arrayBufferWriter.sendData() in chunkLoadComplete() of BlockWriter.js may be 
> a solution.
>  
> Please help.
> Thanks.
>   



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to