简体   繁体   English

ECONNRESET连接由同行Kestrel重置

[英]ECONNRESET connection reset by peer Kestrel

I'm having this error in my Application Insight on Azure: 我在Azure上的Application Insight中遇到此错误:

Microsoft.AspNet.Server.Kestrel.Networking.UvException: Error -4077 ECONNRESET connection reset by peer Microsoft.AspNet.Server.Kestrel.Networking.UvException:错误-4077 ECONNRESET连接由同行重置

I have read this bug in Github,( https://github.com/aspnet/KestrelHttpServer/issues/388 ). 我在Github上读过这个bug,( https://github.com/aspnet/KestrelHttpServer/issues/388 )。

What do this exactly mean? 这究竟意味着什么? It can be for example a problem if the user close the browser during a AJAX call? 例如,如果用户在AJAX调用期间关闭浏览器,可能会出现问题? I'm not using Sockect in my platform. 我没有在我的平台上使用Sockect。

Can I fix it in any way? 我能以任何方式修复它吗? I'm using ASP.NET Core RC1. 我正在使用ASP.NET Core RC1。

This "error" actually just indicates that the client terminated the connection. 这个“错误”实际上只是表明客户端终止了连接。 The server (your code) didn't necessarily do anything wrong, so there's no real problem here. 服务器(你的代码)不一定做错了,所以这里没有真正的问题。 It's like if someone hung up on you while you're on the phone with them. 这就像有人在你打电话的时候挂在你身上。

To continue to the analogy, you might have done something wrong that caused them to hang up (eg in the analogy, maybe you were very rude; on your server, maybe you returned bad data, were taking too long to respond, etc). 继续这个比喻,你可能做错了导致他们挂断(例如,在类比中,也许你非常粗鲁;在你的服务器上,也许你返回了不良数据,花了太长时间来回应等)。 But without further information, there's no reason to believe this is an error in your code. 但没有进一步的信息,没有理由相信这是你的代码中的错误。 It can safely be ignored. 它可以安全地被忽略。 Maybe the user closed the browser tab, lost internet connection, shut down their computer, etc etc. 也许用户关闭了浏览器标签,丢失了互联网连接,关闭了他们的电脑等。

Any normal application will see this in the logs from time to time. 任何正常的应用程序都会不时在日志中看到这一点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM