Giter VIP home page Giter VIP logo

Comments (19)

Simn avatar Simn commented on May 30, 2024

It seems to run at normal speed for nme. NME 3.5.6 installed within about 20 seconds.

from haxelib.

waneck avatar waneck commented on May 30, 2024

really? It almost took an hour here. And my internet connection isn't too bad (50mbps)

from haxelib.

back2dos avatar back2dos commented on May 30, 2024

I can imagine that the haxe.org server is not highly prioritized in transatlantic internet traffic. So for all our non-european users CloudFlare is really worth consideration. However, if we do use CloudFlare, I think we need to set the cache headers right and we probably must forbid uploading the same version again, since it will be cached by the CDN - at least that's how I understand things.

from haxelib.

waneck avatar waneck commented on May 30, 2024

Makes sense for me, back2dos! It should be as simple as setting a .htaccess configuration for it.

from haxelib.

MattTuttle avatar MattTuttle commented on May 30, 2024

👍 NME takes a good 10 minutes for me in the central US. Most other libraries are not a problem since they usually fall under 1MB.

from haxelib.

back2dos avatar back2dos commented on May 30, 2024

@waneck Can you take charge of this, even if only by mere delegation? ;)

from haxelib.

jasononeil avatar jasononeil commented on May 30, 2024

Sad to say I haven't done anything with either Cloudfront or AWS yet, but
I'm keen to learn and contribute to that if someone can point me in the
right direction (just a suggested strategy to follow and where to view the
various APIs would probably be enough).

On Wed, May 28, 2014 at 9:05 PM, Juraj Kirchheim
[email protected]:

@waneck https://github.com/waneck Can you take charge of this, even if
only by mere delegation? ;)


Reply to this email directly or view it on GitHubhttps://github.com//issues/33#issuecomment-44403382
.

from haxelib.

waneck avatar waneck commented on May 30, 2024

I can handle it. But I'll need some help to get access to the Haxe.org DNS

from haxelib.

waneck avatar waneck commented on May 30, 2024

Anyway, if you want to do it, the only thing you need is a cloudflare account, and repeat all our current DNS records into CF

from haxelib.

jasononeil avatar jasononeil commented on May 30, 2024

Ping @ncannasse (I assume?)

from haxelib.

ncannasse avatar ncannasse commented on May 30, 2024

@waneck reach me on Skype so we can setup it together

from haxelib.

MatiasArriola avatar MatiasArriola commented on May 30, 2024

+1
I couldn't get installed any package today. Download speeds are really slow, and it ends up throwing Http connection timeout after a while. I tried using the -notimeout parameter, but I kept getting interrupted by the same timeout errors. Observed the same behavior from both linux and windows. This is reproducible only with big packages such as lime. Note that everything worked fine weeks ago using the same connection.
I'm located in Argentina, and looks like it happened to other people as well.
I guess for now the best workaround is to install everything from git.

from haxelib.

back2dos avatar back2dos commented on May 30, 2024

What's the progress on this?

from haxelib.

waneck avatar waneck commented on May 30, 2024

Oh sorry, I completely missed @ncannasse's post. I'll get in contact with him to set this up

from haxelib.

andyli avatar andyli commented on May 30, 2024

Hey, I would also like to see a faster haxelib download soon.
Right now TravisCI builds a helloworld example in ~7 min, in which > 4 min is spent on haxelib install hxcpp. Interestingly, it takes only a few second to haxelib git hxcpp ....

from haxelib.

nadako avatar nadako commented on May 30, 2024

Any progress?

from haxelib.

andyli avatar andyli commented on May 30, 2024

I've just enabled AWS CloudFront for lib.haxe.org. Please report any problem regarding to haxelib install/submit/whatever.

I used CloudFront instead of CloudFlare because:

  1. CloudFront allows proxying to different origins based on URL. i.e. Currently the origin of http://lib.haxe.org/files/* is AWS S3 while the origin of all other request is AWS Elastic Beanstalk (EC2).

  2. CloudFlare does not allow proxying too much non-webpage content, which is our main use-case. According to its terms of use, "SECTION 10: LIMITATION ON NON-HTML CACHING":

    Using an account primarily as an online storage space, including the storage or caching of a disproportionate percentage of pictures, movies, audio files, or other non-HTML content, is prohibited.

from haxelib.

andyli avatar andyli commented on May 30, 2024

Sadly, CloudFront suddenly doesn't play well with our current haxelib clients, so I've disabled it. I don't think I've changed anything from our side that could cause the issue, so may be it is CloudFront.

The issue is, when haxelib install ufront-mvc using the haxelib bundled with haxe 3.2.1 or 3.1.3, it will error with Invalid string length. The reason is probably this: https://groups.google.com/forum/#!topic/haxelang/F2wRMafvVrI.
I checked that the issue goes away if we set http.noShutdown = true in the haxelib client. But we cannot really fix the haxelib clients that are already released... :(
It is funny that it happens only for some libs (e.g. ufront-mvc) but not others. Also, the haxelib client bundled with haxe dev is somehow not affected...

My plan is to fix the haxelib client to support http redirect (301/302), and then let our server to route the new clients to download libraries from a CloudFront-backed url. Old clients will still be directly served by the web server, which will be a bit slower, but at least works.

from haxelib.

buckle2000 avatar buckle2000 commented on May 30, 2024

Downloading hx-cpp takes about 10 min in Hong Kong with manual download. CLI download is far worse.

from haxelib.

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.