在django 中使用python redis 客戶端redis-py,隔一段時間就會報下面這個錯,重啓一下django fastcgi 就好
錯誤:
File "build/bdist.linux-i686/egg/redis/connection.py", line 210, in read_response
response = self._parser.read_response()
File "build/bdist.linux-i686/egg/redis/connection.py", line 68, in read_response
raise InvalidResponse("Protocol Error")
InvalidResponse: Protocol Error
最後GOOGLE到多是redis-py的一個BUG,升級到redis-py 問題解決。
redis-py 下載地址:http://pypi.python.org/pypi/redis/python
http://www.zuoann.comlinux