On Jun 26, 2012, at 5:25 PM, 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?

This was fixed in Python 2.7. The underlying error is "Transport endpoint is 
not connected", which of course shouldn't cause a crash. I suppose we could 
catch the exception in Rocket as a workaround.

> 
> 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!
> 
> 


-- 



Reply via email to