Giter VIP home page Giter VIP logo

Comments (3)

jhump avatar jhump commented on June 3, 2024 1

I think the issue is that you may just wrapping the Connect handlers with h2c.NewHandler. If you instead wrap the root handler/mux for the server, then you would at least have gotten a 404 quickly instead of it timing out. When you say you removed the path prefix, I assume the result was h2c was indeed applied at the root.

This is necessary in order to properly support h2c, so the server will recognize and correctly handle the HTTP/2 preface. Otherwise, the server will decide the request is invalid and immediately hang up. The client doesn't know why the server hung up so treats it as a temporary error and just keeps re-trying until the connection timeout elapses. (This is closely related to fullstorydev/grpcurl#387, which mentions a possible improvement that could at least enable failing faster in these cases and providing a better error message to users.)

from grpcui.

rgzr avatar rgzr commented on June 3, 2024

I tried listening on a path with no prefixes and it's working now.

from grpcui.

rgzr avatar rgzr commented on June 3, 2024

That's exactly the case. Thank you very much for the clarification!

from grpcui.

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.