python [Errno socket error] [Errno 104] Connection reset by peer
2013-08-12 14:39
543 查看
python [Errno socket error] [Errno 104] Connection reset by peer
原因可能是多方面的,不过更常见的原因是:
①:服务器的并发连接数超过了其承载量,服务器会将其中一些连接Down掉;
②:客户关掉了浏览器,而服务器还在给客户端发送数据;
③:浏览器端按了Stop
通常原因为:
远程主机上对等方应用程序突然停止运行,或远程主机重新启动,或远程主机在远程方套接字上使用了“强制”关闭 (参见setsockopt(SO_LINGER))。
另外,在一个或多个操作正在进行时,如果连接因“keep-alive”活动检测到一个失败而中断,也可能导致此错误。此时,正在进行的操作以错误码WSAENETRESET失败返回,后续操作将失败返回错误码WSAECONNRESET。
但是如果频繁出现,就表示很多客户端连接到Apache服务器的响应时间太长了,可能是网络的问题或者服务器性能问题
原因可能是多方面的,不过更常见的原因是:
①:服务器的并发连接数超过了其承载量,服务器会将其中一些连接Down掉;
②:客户关掉了浏览器,而服务器还在给客户端发送数据;
③:浏览器端按了Stop
通常原因为:
远程主机上对等方应用程序突然停止运行,或远程主机重新启动,或远程主机在远程方套接字上使用了“强制”关闭 (参见setsockopt(SO_LINGER))。
另外,在一个或多个操作正在进行时,如果连接因“keep-alive”活动检测到一个失败而中断,也可能导致此错误。此时,正在进行的操作以错误码WSAENETRESET失败返回,后续操作将失败返回错误码WSAECONNRESET。
但是如果频繁出现,就表示很多客户端连接到Apache服务器的响应时间太长了,可能是网络的问题或者服务器性能问题
相关文章推荐
- python 爬虫 <class 'socket.error'>: [Errno 104] Connection reset by peer)
- pyspider连接rabbitmq ,结果出现socket.error: [Errno 104] Connection reset by peer 这样的报错信息
- ConnectionResetError: [Errno 104] Connection reset by peer
- urllib2.URLError: <urlopen error [Errno 104] Connection reset by peer>
- urllib2.URLError: <urlopen error [Errno 104] Connection reset by peer>
- python httplib [Errno 104] Connection reset by peer问题
- ConnectionResetError: [Errno 104] Connection reset by peer
- Python 频繁请求问题: [Errno 104] Connection reset by peer
- Python 频繁请求问题: [Errno 104] Connection reset by peer
- urllib2.URLError: <urlopen error [Errno 104] Connection reset by peer>
- urllib2.URLError: <urlopen error [Errno 104] Connection reset by peer>
- SSH error ( Read from socket failed: Connection reset by peer ) and it's solution
- Connection reset by peer: socket write error 和Timestamp format must be yyyy-mm-dd hh:mm:ss.fffffffff 的一种解决办法
- java.net.SocketException: Connection reset by peer: socket write error
- TNS-12547,Linux Error: 104: Connection reset by peer
- TNS-12547 Linux Error: 104: Connection reset by peer
- nginx访问日志报错:apr_socket_recv: Connection reset by peer (104)
- [Microsoft][SQLServer 2000 Driver for JDBC]Connection reset by peer: socket write error
- Connection reset by peer: socket write error错误分析及解决
- connection reset by peer, socket write error问题排查