-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kestral is very slow when posting data #4711
Comments
That sounds suspiciously like firewall filters getting in the way. Kestrel has no control of things that happen below the Socket layer, and doesn't check the host name on requests. |
I don’t think so, My firewall is turned off. Also it doesn’t happen when there is no “Name” property in the JSON payload for post method |
When in doubt, simplify. Remove MVC from your sample and read the request body stream as text. app.Run(async context => |
that too have the same issue. I have modified the startup.cs as |
I have tried it in my personal laptop and it is working fine, but all machines in our corporate network and my official laptop has this issue. let me check with our IT team. |
We periodically close 'discussion' issues that have not been updated in a long period of time. We apologize if this causes any inconvenience. We ask that if you are still encountering an issue, please log a new issue with updated information and we will investigate. |
Please get the sample source from https://github.com/cibinmathewjose/KestrelPostIssue.git
run the code and post {"Name":"test","Price":1} to http://{machine}:5000/api/products, it will take ~6 seconds.
if you post {"Price":1} to http://{machine}:5000/api/products it will work normally.
The put request endpoint is always slow with machine name url, regardless of the data posted.
Also if you use localhost instead of machine name in url, it will always works normal.
this is the same issue as #2229
The text was updated successfully, but these errors were encountered: