Comments (8)
Proposal:
- When leaving accept loop, Kestrel must unbind endpoint or stop listen.
- When leaving accept loop, Kestrel should be send notification, by event or otherwise.
- Public accept loop state.
from aspnetcore.
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.
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.
@Ivony did you run into this?
from aspnetcore.
@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 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.
@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.
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)
- [9.0-preview.5] Endpoint with nullable parameter no longer generates code with Request Delegate Generator
- Perf improvement: plaintext
- Perf regression: plainTextWithFilter
- Blazor pages from RCL does not work in net8 HOT 3
- WebApplicationFactory failing to replace registrations in Background Service HOT 2
- miniwebapi Failed to read parameter "Parameters para" from the request body as JSON HOT 2
- Perf improvement: json
- Make Blazor More Extensible HOT 4
- Perf improvement: fortunes_ef
- Perf regression: plaintext
- Perf improvement: ApiCrudDeleteProduct
- Perf improvement: mapaction
- Perf regression: multiple_queries
- Published size regression: todosapipublishaot, todosapipublishaot, todosapipublishaot HOT 1
- x
- Automatically add enctype="multipart/form-data" when there is a file input HOT 1
- WebApplicationFactory has content root issue when running tests on WSL2 HOT 2
- Issue using server-side model binding with `EditForm` in `OnParametersSetAsync` method HOT 3
- Binding is not working in VS2022 HOT 2
- Blazor WebAssembly does not work after upgrade HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aspnetcore.