有时websocket在发送数据时出现错误。哪些配置更改可以防止此错误?或者,我怎样才能优雅地处理这个问题?
<>之前回溯(最近一次调用):文件"/usr/local/lib/python2.7/dist-packages/tornado-3.0.1-py2.7.egg/tornado/iostream.py",第316行,在wrapper中回调(* args)文件"/usr/local/lib/python2.7/dist-packages/tornado-3.0.1-py2.7.egg/tornado/stack_context.py",第241行回调(* args, * * kwargs)文件"/usr/local/lib/python2.7/dist-packages/tornado-3.0.1-py2.7.egg/tornado/websocket.py",第643行,在_on_masked_frame_data .py中self._on_frame_data (self._apply_mask(自我。_frame_mask、数据)文件"/usr/local/lib/python2.7/dist-packages/tornado-3.0.1-py2.7.egg/tornado/websocket.py",第680行,在_on_frame_data .py中self._receive_frame ()文件"/usr/local/lib/python2.7/dist-packages/tornado-3.0.1-py2.7.egg/tornado/websocket.py",第582行,在_receive_frame中self.stream。self._on_frame_start read_bytes (2)文件"/usr/local/lib/python2.7/dist-packages/tornado-3.0.1-py2.7.egg/tornado/iostream.py",第162行,在read_bytes中self._try_inline_read ()文件"/usr/local/lib/python2.7/dist-packages/tornado-3.0.1-py2.7.egg/tornado/iostream.py",第398行,在_try_inline_read中如果self._read_to_buffer() == 0:文件"/usr/local/lib/python2.7/dist-packages/tornado-3.0.1-py2.7.egg/tornado/iostream.py",第414行,在_read_to_buffer中Chunk = self.read_from_fd()文件"/usr/local/lib/python2.7/dist-packages/tornado-3.0.1-py2.7.egg/tornado/iostream.py",第856行,在read_from_fd中Chunk = self.socket.read(self.read_chunk_size)文件"/usr/lib/python2.7/ssl.py",第160行,在read返回self._sslobj.read(兰)SSLError: [Errno 1] _ssl.c:1363: error:1409442E:SSL例程:SSL3_READ_BYTES:tlsv1警告协议版本该错误表明您的客户端正在使用TLS v1。nginx服务器不再接受。
快速解决方法是在服务器上启用该协议。请参阅https://ma.ttias.be/enable-tls-1-3-nginx/了解如何做到这一点。
警告:TLS v1被认为不安全!