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

Josef Krahujec commented on GUACAMOLE-331:
------------------------------------------

* Sorry, my bad. I will change it.
* Absolutely. Client has been forked from the latest guacamole-example project. 
Changes were mostly cosmetic (e.g. custom upload bar and clipboard management). 
File download is done via BlobReader (see the code above). 
Also new tunnel connection is done like this:
{code:javascript}
tunnel = new Guacamole.HTTPTunnel("tunnel");
window.guac = new Guacamole.Client(tunnel);
{code}

Both official and custom clients were running on the host machine (that is 
Ubuntu 16.04), and unmodified guacd server instances were running in the lxd 
containers (Fedora 25). And yes, both clients were pointed at the same guacd 
instance (container).
* Latest versions of Firefox (Ubuntu 16.04, macOS Sierra), Chrome/Chromium 
(Ubuntu 16.04, macOS Sierra), Safari (macOS Sierra) and MS Edge (Windows 10)

> Extremely slow download/upload over http tunnel
> -----------------------------------------------
>
>                 Key: GUACAMOLE-331
>                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-331
>             Project: Guacamole
>          Issue Type: Bug
>          Components: guacamole-common, guacamole-common-js
>    Affects Versions: 0.9.12-incubating
>         Environment: Ubuntu 16.04 (custom guacamole client), Fedora 25 (guacd 
> instances in lxd containers)
>            Reporter: Josef Krahujec
>              Labels: documentation-update, http-tunneling, input-stream
>
> Downloading/uploading files over http tunnel is extremely slow (200 kB/s 
> maximum), even though we are present in local network. Here is source code 
> for downloading files:
> {code:JavaScript}
> $(".management table").on("click", ".fs-file", function(){
>       var that = this;
>       var filename = $(".management tbody").children().eq(that.rowIndex - 
> 1).find(".name").html();
>       var requestFile = $("#path").html() + filename;
>       if ($.inArray(requestFile, window.downloading) != -1)
>               return false;
>       $(".management tbody").children().eq(that.rowIndex - 
> 1).children().eq(1).addClass("downloading");
>       window.downloading.push(requestFile);
>       window.fs.obj.requestInputStream(requestFile, function(stream, 
> mimetype){
>               stream.sendAck("Ready", Guacamole.Status.Code.SUCCESS);
>               var reader = new Guacamole.BlobReader(stream, mimetype);
>               removeSearch();
>               reader.onend = function(){
>                       var blob = reader.getBlob();
>                       blobDownload(blob, filename, requestFile);
>               }
>       });
> });
> {code}
> We have also tried the official guacamole client, however there appeared to 
> be no such problem.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to