Giter VIP home page Giter VIP logo

Comments (1)

ngshiheng avatar ngshiheng commented on June 27, 2024

I actually like the idea of having a timeout for this. I recently stumbled upon a similar situation.

Just to give a quick comparison, Go's official module proxy mirror responds almost immediately when we do: https://proxy.golang.org/github.com/grpc-ecosystem/grpc-gateway/v3/@v/list (404)

On the other hand, https://athens.private.com/github.com/grpc-ecosystem/grpc-gateway/v3/@v/list took ~9s to return 200. For bigger modules like aws-sdk-go, it could take much longer as you described.

Response code aside, I'm not sure if Athens wants to do the same thing here. Maybe others can chime in.

Anyway, @colinodell i see that you're using Renovate for this from your user-agent. Here's how I reduced the response wait time when using Renovate (35.138.1-slim):

hostRules: [
        {
            hostType: "go-proxy",
            description: "Avoid waiting 1 min/req to wait for go-proxy to respond if a module version list does not exist",
            timeout: 5000, // milliseconds
        },
    ],

I hope this can temporarily relieve the wait a bit for your use case

from athens.

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.