How do I solve a WSAECONNRESET error?

假如想象 提交于 2020-01-06 05:17:05

问题


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 receive failed. read: socket: WSAECONNRESET

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.

Any tips?


回答1:


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

WSAECONNRESET 10054 Connection reset by peer.

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.

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.



来源:https://stackoverflow.com/questions/48370530/how-do-i-solve-a-wsaeconnreset-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!