GithubHelp home page GithubHelp logo

Comments (8)

Ivony avatar Ivony commented on June 17, 2024 1

Proposal:

  1. When leaving accept loop, Kestrel must unbind endpoint or stop listen.
  2. When leaving accept loop, Kestrel should be send notification, by event or otherwise.
  3. Public accept loop state.

from aspnetcore.

amcasey avatar amcasey commented on June 17, 2024 1

Sorry, I'm having a little trouble understanding what behavior you're seeing. Are you saying that all requests to your kestrel server are rejected with "connection reset by peer"? Or maybe you're saying that the port is still in use after kestrel exits? A sample program demonstrating the problem or even the server logs (ideally, level trace from "Microsoft.AspNetCore") would be very helpful.

from aspnetcore.

785468931 avatar 785468931 commented on June 17, 2024

Sorry, I'm having a little trouble understanding what behavior you're seeing. Are you saying that all requests to your kestrel server are rejected with "connection reset by peer"? Or maybe you're saying that the port is still in use after kestrel exits? A sample program demonstrating the problem or even the server logs (ideally, level trace from "Microsoft.AspNetCore") would be very helpful.

curl http://ip:5000/heal
All requests return curl: (56) Recv failure: Connection reset by peer

from aspnetcore.

davidfowl avatar davidfowl commented on June 17, 2024

@Ivony did you run into this?

from aspnetcore.

amcasey avatar amcasey commented on June 17, 2024

@785468931 Is it possible the connection is being blocked by the firewall on the server? Do you have some reason to believe the request is reaching kestrel and then being rejected?

from aspnetcore.

785468931 avatar 785468931 commented on June 17, 2024

@785468931 Is it possible the connection is being blocked by the firewall on the server? Do you have some reason to believe the request is reaching kestrel and then being rejected?

I confirmed that there is no problem with the local firewall. I also got the same error response when using curl localhost(curl http://localhost:5000/heal).

from aspnetcore.

amcasey avatar amcasey commented on June 17, 2024

@785468931 I think the next step would be to collect a server log so we can see whether it's receiving the connection and, if so, why it's rejecting it. A pcap might also be useful.

from aspnetcore.

amcasey avatar amcasey commented on June 17, 2024

I can't tell whether @785468931 and @Ivony have related problems because I'm still not sure I understand @Ivony's concern/request.

from aspnetcore.

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.