cherrypy time out error.

699 views
Skip to first unread message

abhishek

unread,
May 9, 2008, 10:24:24 AM5/9/08
to cherrypy-users
Hi group please suggest me a fix for this problem.


[ERROR] error:<class 'socket.timeout'> trace:Traceback (most recent
call last):
File "c:\python25\lib\site-packages\cherrypy-2.2.1-py2.5.egg\cherrypy
\_cphttptools.py", line 98, in _run
self.processBody()
File "c:\python25\lib\site-packages\cherrypy-2.2.1-py2.5.egg\cherrypy
\_cphttptools.py", line 230, in processBody
keep_blank_values=1)
File "c:\python25\lib\site-packages\cherrypy-2.2.1-py2.5.egg\cherrypy
\_cpcgifs.py", line 8, in __init__
cgi.FieldStorage.__init__(self, *args, **kwds)
File "C:\python25\lib\cgi.py", line 534, in __init__
self.read_multi(environ, keep_blank_values, strict_parsing)
File "C:\python25\lib\cgi.py", line 659, in read_multi
environ, keep_blank_values, strict_parsing)
File "c:\python25\lib\site-packages\cherrypy-2.2.1-py2.5.egg\cherrypy
\_cpcgifs.py", line 8, in __init__
cgi.FieldStorage.__init__(self, *args, **kwds)
File "C:\python25\lib\cgi.py", line 536, in __init__
self.read_single()
File "C:\python25\lib\cgi.py", line 669, in read_single
self.read_lines()
File "C:\python25\lib\cgi.py", line 691, in read_lines
self.read_lines_to_outerboundary()
File "c:\python25\lib\site-packages\cherrypy-2.2.1-py2.5.egg\cherrypy
\_cpcgifs.py", line 31, in read_lines_to_outerboundary
line = self.fp.readline(1<<16)
File "c:\python25\lib\site-packages\cherrypy-2.2.1-py2.5.egg\cherrypy
\lib\httptools.py", line 496, in readline
data = self.rfile.readline(size)
File "C:\python25\lib\socket.py", line 373, in readline
data = self._sock.recv(self._rbufsize)
timeout: timed out

braydon fuller

unread,
May 9, 2008, 2:36:10 PM5/9/08
to cherryp...@googlegroups.com
here is some advice I received awhile ago
braydon fuller wrote:
> I need some advice to prevent these errors.
>     raise cherrypy.TimeoutError()
  
You can easily avoid that by increasing response.timeout in config:

    [/]
    response.timeout = 1000000

The whole timeout mechanism in 3.0 needs reevaluation; I might push to
remove it in 3.1.

Robert Brewer

unread,
May 11, 2008, 3:47:52 AM5/11/08
to cherryp...@googlegroups.com
abhishek wrote:
> [ERROR] error:<class 'socket.timeout'>

and braydon fuller wrote:
> The whole timeout mechanism in 3.0 needs reevaluation;
> I might push to remove it in 3.1.

Note the OP is using CP 2.2. The socket.timeout is trapped appropriately
in 3.1.


Robert Brewer
fuma...@aminus.org

Reply all
Reply to author
Forward
0 new messages