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

问题描述

  Traceback(最近一次调用最后一次):
在_handle_request_noblock
self.process_request(request,client_address)
文件C:\Python27\lib\SocketServer.py,行284,在文件C:\Python27\ lib_\\SocketServer.py,第310行,在process_request
self.finish_request(request,client_address)
文件C:\Python27\lib\SocketServer.py,第323行,in finish_request
self.RequestHandlerClass(request,client_address,self)
在__init__
文件C:\Python27\lib\SocketServer.py中,640行self.finish()
文件C:\Python27\lib\SocketServer.py,行693,完成
self.wfile.flush()
文件C:\Python27\清空
self._sock.sendall(view [write_offset:write_offset + buffer_size])
错误:[Errno 10053] 任何想法,为什么会发生这种情况(win8 x64,python27,bb,b,b,b,b,b,b,b,b, X32)?

解决方案

出现超时或其他网络级错误。这是你的操作系统关闭套接字,与Python或Flask无关,真的。

它可能是远程浏览器停止响应,网络连接死亡或防火墙关闭连接,因为它打开时间过长,或任何其他数量的原因。

If I am coding on Flask, then I sometimes get this error:

Traceback (most recent call last):
  File "C:\Python27\lib\SocketServer.py", line 284, in _handle_request_noblock
    self.process_request(request, client_address)
  File "C:\Python27\lib\SocketServer.py", line 310, in process_request
    self.finish_request(request, client_address)
  File "C:\Python27\lib\SocketServer.py", line 323, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\Python27\lib\SocketServer.py", line 640, in __init__
    self.finish()
  File "C:\Python27\lib\SocketServer.py", line 693, in finish
    self.wfile.flush()
  File "C:\Python27\lib\socket.py", line 303, in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 10053] ��������� �� ����� ����-

Any ideas why this would happen (win8 x64, python27 x32)?

From the Windows Sockets Error Codes list:

There was a timeout or other network-level error. This is your operating system closing the socket, nothing to do with Python or Flask, really.

It could be the remote browser stopped responding, the network connection died, or a firewall closed the connection because it was open too long, or any other number of reasons.

这篇关于错误:[Errno 10053]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 07:42