我有一个简单的服务器应用程序,与mongodb服务器通信,在端口1234上运行。有时我发现应用程序挂起(不下来,它会更好......)并且日志上出现此错误
Traceback (most recent call last):
File "/usr/lib/python2.7/SocketServer.py", line 295, in _handle_request_noblock
self.process_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 321, in process_request
self.finish_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python2.7/SocketServer.py", line 651, in __init__
self.finish()
File "/usr/lib/python2.7/SocketServer.py", line 710, in finish
self.wfile.close()
File "/usr/lib/python2.7/socket.py", line 279, in close
self.flush()
File "/usr/lib/python2.7/socket.py", line 303, in flush
self._sock.sendall(view[write_offset:write_offset+buffer_size])
**error: [Errno 32] Broken pipe**
我读到了'破管'错误以及如何避免它,但我真的不知道何时发生 ...所以,有一种方法可以重现问题或调试它?
我不知道这个问题是否有意义,如果没有完全解释服务器的作用,实际上,但如果我没有得到一些情况的线索,我无法解释比这更好......