It happens rather frequently. At least a few times a day, which consequently causes web2py to hang and forces me to restart it. I can't reproduce it manually.
On Tuesday, June 26, 2012 5:25:43 PM UTC-7, Massimo Di Pierro wrote: > > Looks like a buggy socket.py or ssl.py. Is this an occasional error (which > may depend on parameters such as certificates) or it reproducible? > > On Tuesday, 26 June 2012 12:30:58 UTC-5, msmagoo wrote: >> >> Hi all, >> >> I have a healthcheck web2py application that simply reads healthcheck >> information from a database and makes a few REST api calls to a separate >> web2py application. Over the past while the application has been crashing >> at least once, sometimes twice a day with few errors in the logs. Most are >> connection reset by peer errors, which I found out to be nothing that would >> crash the application. An error I have been seeing frequently is: >> ERROR:Rocket.Errors.Thread-8:Traceback (most recent call last): >> >> File "/opt/apps/web2py/gluon/rocket.py", line 1302, in run >> self.run_app(conn) >> >> File "/opt/apps/web2py/gluon/rocket.py", line 1986, in run_app >> self.environ = environ = self.build_environ(sock_file, conn) >> >> File "/opt/apps/web2py/gluon/rocket.py", line 1807, in build_environ >> request = self.read_request_line(sock_file) >> >> File "/opt/apps/web2py/gluon/rocket.py", line 1363, in read_request_line >> d = sock_file.readline() >> >> File "/usr/lib/python2.6/socket.py", line 406, in readline >> data = self._sock.recv(self._rbufsize) >> >> File "/usr/lib/python2.6/ssl.py", line 96, in <lambda> >> self.recv = lambda buflen=1024, flags=0: SSLSocket.recv(self, buflen, >> flags) >> >> File "/usr/lib/python2.6/ssl.py", line 224, in recv >> return socket.recv(self, buflen, flags) >> >> TypeError: 'member_descriptor' object is not callable >> >> ERROR:Rocket.Errors.Thread-8:Tried to send "500 Server Error" to client >> but received socket error >> >> >> I have web2py running on https with some certs set up. Any help would be >> very appreciated. >> >> Thanks! >> > --