如何解决 WSAECONNRESET 错误? [英] How do I solve a WSAECONNRESET error?

查看:449
本文介绍了如何解决 WSAECONNRESET 错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个小型开发团队中使用 Perforce.每个人都能够连接到 P4V 客户端,除了一个人收到以下错误:

I am using Perforce as part of a small development team. Everyone was able to connect to the P4V client except for one person who gets the following error:

TCP 接收失败.读取:套接字:WSAECONNRESET

TCP receive failed. read: socket: WSAECONNRESET

我们已停用他的迈克菲防火墙和病毒扫描,但错误仍然存​​在.我真的不知道如何处理这个错误,它似乎在 perforce 网站上没有记录.据我所知,这是因为这不是特定于 perforce 的问题,而是可能由其他原因引起的 TCP 通信问题.

We have deactivated his McAfee firewall and virus scan, but the error persists. I really don't know what to do with this error and it seems to be rather undocumented on the perforce website. From what I gather, it's because it's not a perforce-specific issue, but rather a TCP communication problem that might be caused by something else.

有什么建议吗?

推荐答案

可能由其他原因引起的 TCP 通信问题.

a TCP communication problem that might be caused by something else.

这是可能的,或者有可能每当此用户连接时都会导致某种服务器故障.

This is possible, or it's possible that whenever this user connects it causes some sort of server fault.

https://msdn.microsoft.com/en-us/library/ms740668.aspx

WSACONNRESET 10054 对等方重置连接.

现有连接被远程主机强行关闭.如果远程主机上的对等应用程序突然停止,主机重新启动,主机或远程网络接口被禁用,或者远程主机使用硬关闭(有关远程上的 SO_LINGER 选项的更多信息,请参阅setsockopt 的更多信息),这通常会导致插座).如果在一个或多个操作正在进行时由于保持活动活动检测到故障而断开连接,也可能导致此错误.正在进行的操作因 WSAENETRESET 而失败.后续操作因 WSAECONNRESET 而失败.

An existing connection was forcibly closed by the remote host. This normally results if the peer application on the remote host is suddenly stopped, the host is rebooted, the host or remote network interface is disabled, or the remote host uses a hard close (see setsockopt for more information on the SO_LINGER option on the remote socket). This error may also result if a connection was broken due to keep-alive activity detecting a failure while one or more operations are in progress. Operations that were in progress fail with WSAENETRESET. Subsequent operations fail with WSAECONNRESET.

除了通常的连接故障排除问题(此用户是否在同一子网上?客户端软件的相同版本?完全相同的 P4PORT 设置?用户是否能够通过命令行客户端进行连接,如果不能,它是否会提供更多帮助?错误?为什么这个用户与所有其他用户不同?)我会查看服务器日志,看看当这个用户尝试连接时它是否记录了任何更有用的错误.

Beyond the usual connection troubleshooting questions (is this user on the same subnet? same version of the client software? same exact P4PORT setting? is the user able to connect via the command line client and if not does it give a more helpful error? why is this user unlike all other users?) I'd look at the server logs to see if it's logging any sort of more helpful error when this user tries to connect.

这篇关于如何解决 WSAECONNRESET 错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆