Giter Club home page Giter Club logo

Comments (4)

maltechx avatar maltechx commented on June 9, 2024 1

I am getting correct numbers without the patch, so for me there is no need to change anything. I think it is important to disable any buffer/caching in your nginx config.
This is my nginx config:

location / {
       proxy_http_version 1.1;
       proxy_set_header Upgrade $http_upgrade;
       proxy_set_header Connection "upgrade";
       proxy_set_header Host $http_host;
       proxy_set_header X-Real-IP $remote_addr;
       proxy_set_header X-Forwarded-Host $http_host;
       proxy_set_header X-Forwarded-Server $http_host;
       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
       proxy_set_header X-Forwarded-Proto $scheme;
       gzip off;
       proxy_redirect off;
       proxy_buffering off;
       client_max_body_size 256M;
       proxy_pass http://localhost:8181/;
    }

from speedtest.

e7d avatar e7d commented on June 9, 2024

Hi @santowiryamann

I'm sadly aware the speedtest is not running as expected behind a proxy.
This is something I would be able to fix, but to be honest, which is not in top of my list.

I definitely reckon it as a bug, and will try to investigate at some point.

Regards.

from speedtest.

e7d avatar e7d commented on June 9, 2024

I found an irregularity in the bandwidth test part.
I tagged a version 0.5.4-alpha.0 that you may try.
I'm not sure that it was the root coause, but let me know if it helps.

Also built and available through Docker: https://hub.docker.com/layers/e7db/speedtest/v0.5.4-alpha.0/images/sha256-35ccac2eca91e63f46e706d9630353dfa0e498f1abc6e3b8c9b52cf5ad73ab74?context=repo

from speedtest.

rgriffogoes avatar rgriffogoes commented on June 9, 2024

I'm using speedtest with docker, behind Traefik proxy (also docker, same docker host). As I was having similar issues, I decided to test out the 4 combinations

Master + Traefik = 2000+- Mbps
Tag + Traefik = 1200+- Mbps

Master + direct = 360 Mbps
Tag + direct = 223 Mbps

Running iperf3 between client machine and docker host I got 375Mbps.

So I guess that the master is giving out correct numbers if the proxy is not messing up the values.

I can't look deeper now but besides knowing the specific settings for the proxy (as mentioned by @maltechx), maybe the test can be updated to generate unbufferable/compressible random text? As not everyone will be able/allowed to change their reverse proxy settings

from speedtest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.