why the CherryPyWSGIServer's timeout attribute is 10 sec?

View: New views
7 Messages — Rating Filter:   Alert me  

why the CherryPyWSGIServer's timeout attribute is 10 sec?

by kamonama2@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



in _cpwsgiserver.py, the timeout parameter of CherryPyWSGIServer's
__init__ method is 10[sec] in default. the timeout value is passed to
python socket object in tick method of the CherryPyWSGIServer.

because CherryPyWSGIServer is wrapped by WSGIServer, the timeout value
ends up to be fixed to 10.

what is the reason that the default timeout value is 10 ?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cherrypy-devel" group.
To post to this group, send email to cherrypy-devel@...
To unsubscribe from this group, send email to cherrypy-devel-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cherrypy-devel
-~----------~----~----~----~------~----~------~--~---


Re: why the CherryPyWSGIServer's timeout attribute is 10 sec?

by Ionel Maries Cristian :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

what's wrong with it ?

On Jan 15, 2008 10:30 AM, kamonama2@... <kamonama@...> wrote:


in _cpwsgiserver.py, the timeout parameter of CherryPyWSGIServer's
__init__ method is 10[sec] in default. the timeout value is passed to
python socket object in tick method of the CherryPyWSGIServer.

because CherryPyWSGIServer is wrapped by WSGIServer, the timeout value
ends up to be fixed to 10.

what is the reason that the default timeout value is 10 ?



--
http://code.google.com/p/cogen/
ionel.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cherrypy-devel" group.
To post to this group, send email to cherrypy-devel@...
To unsubscribe from this group, send email to cherrypy-devel-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cherrypy-devel
-~----------~----~----~----~------~----~------~--~---


Re: why the CherryPyWSGIServer's timeout attribute is 10 sec?

by Robert Brewer-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


kamonama2@... wrote:
> in _cpwsgiserver.py, the timeout parameter of CherryPyWSGIServer's
> __init__ method is 10[sec] in default. the timeout value is passed to
> python socket object in tick method of the CherryPyWSGIServer.
>
> because CherryPyWSGIServer is wrapped by WSGIServer, the timeout value
> ends up to be fixed to 10.
>
> what is the reason that the default timeout value is 10 ?

It seemed like a good idea at the time. Apache's is 15 seconds [1].

Ph.D. theses which statistically compute the best default across a broad
range of machines, CPUs, OS's, browsers, network topologies, and traffic
patterns gladly accepted. Although perhaps, like Gladwell, one might
determine some people just like their CherryPy "extra chunky".


Robert Brewer
fumanchu@...

[1] http://httpd.apache.org/docs/2.0/mod/core.html#keepalivetimeout

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cherrypy-devel" group.
To post to this group, send email to cherrypy-devel@...
To unsubscribe from this group, send email to cherrypy-devel-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cherrypy-devel
-~----------~----~----~----~------~----~------~--~---


Re: why the CherryPyWSGIServer's timeout attribute is 10 sec?

by masayuki.takagi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


With Cherrypy 2.2.1 I'm trying to return some csv data, dynamically
generated taking a few minutes.

with Internet Explorer(6 and 7), the returned csv data are only
saved partially.

Cherrypy leaves traceback as below:

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/CherryPy-2.2.1-py2.5.egg/
cherrypy/_cpwsgiserver.py", line 203, in run
    request.write(line)
  File "/usr/lib/python2.5/site-packages/CherryPy-2.2.1-py2.5.egg/
cherrypy/_cpwsgiserver.py", line 147, in write
    self.wfile.write(d)
  File "socket.py", line 262, in write
    self.flush()
  File "socket.py", line 249, in flush
    self._sock.sendall(buffer)
timeout: timed out


i changed CherryPyWSGIServer's timeout vlaue to 100 and tried it
again,  then whole csv data saved successfully.
so i wondered why CherryPyWSGIServer's timeout is 10.



On 1月15日, 午後8:13, "Ionel Maries Cristian" <ionel...@...> wrote:

> what's wrong with it ?
>
> On Jan 15, 2008 10:30 AM, kamona...@... <kamon...@...> wrote:
>
>
>
> > in _cpwsgiserver.py, the timeout parameter of CherryPyWSGIServer's
> > __init__ method is 10[sec] in default. the timeout value is passed to
> > python socket object in tick method of the CherryPyWSGIServer.
>
> > because CherryPyWSGIServer is wrapped by WSGIServer, the timeout value
> > ends up to be fixed to 10.
>
> > what is the reason that the default timeout value is 10 ?
>
> --http://code.google.com/p/cogen/
> ionel.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cherrypy-devel" group.
To post to this group, send email to cherrypy-devel@...
To unsubscribe from this group, send email to cherrypy-devel-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cherrypy-devel
-~----------~----~----~----~------~----~------~--~---


Re: why the CherryPyWSGIServer's timeout attribute is 10 sec?

by masayuki.takagi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


With Cherrypy 2.2.1 I'm trying to return some csv data, dynamically
generated taking a few minutes.

with Internet Explorer(6 and 7), the returned csv data are only
saved partially.

Cherrypy leaves traceback as below:

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/CherryPy-2.2.1-py2.5.egg/
cherrypy/_cpwsgiserver.py", line 203, in run
    request.write(line)
  File "/usr/lib/python2.5/site-packages/CherryPy-2.2.1-py2.5.egg/
cherrypy/_cpwsgiserver.py", line 147, in write
    self.wfile.write(d)
  File "socket.py", line 262, in write
    self.flush()
  File "socket.py", line 249, in flush
    self._sock.sendall(buffer)
timeout: timed out


i changed CherryPyWSGIServer's timeout vlaue to 100 and tried it
again,  then whole csv data saved successfully.
so i wondered why CherryPyWSGIServer's timeout is 10.



On 1月15日, 午後8:13, "Ionel Maries Cristian" <ionel...@...> wrote:

> what's wrong with it ?
>
> On Jan 15, 2008 10:30 AM, kamona...@... <kamon...@...> wrote:
>
>
>
> > in _cpwsgiserver.py, the timeout parameter of CherryPyWSGIServer's
> > __init__ method is 10[sec] in default. the timeout value is passed to
> > python socket object in tick method of the CherryPyWSGIServer.
>
> > because CherryPyWSGIServer is wrapped by WSGIServer, the timeout value
> > ends up to be fixed to 10.
>
> > what is the reason that the default timeout value is 10 ?
>
> --http://code.google.com/p/cogen/
> ionel.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cherrypy-devel" group.
To post to this group, send email to cherrypy-devel@...
To unsubscribe from this group, send email to cherrypy-devel-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cherrypy-devel
-~----------~----~----~----~------~----~------~--~---


Re: why the CherryPyWSGIServer's timeout attribute is 10 sec?

by masayuki.takagi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


With Cherrypy 2.2.1 I'm trying to return some csv data, dynamically
generated taking a few minutes.

with Internet Explorer(6 and 7), the returned csv data are only
saved partially.

Cherrypy leaves traceback as below:

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/CherryPy-2.2.1-py2.5.egg/
cherrypy/_cpwsgiserver.py", line 203, in run
    request.write(line)
  File "/usr/lib/python2.5/site-packages/CherryPy-2.2.1-py2.5.egg/
cherrypy/_cpwsgiserver.py", line 147, in write
    self.wfile.write(d)
  File "socket.py", line 262, in write
    self.flush()
  File "socket.py", line 249, in flush
    self._sock.sendall(buffer)
timeout: timed out


i changed CherryPyWSGIServer's timeout vlaue to 100 and tried it
again,  then whole csv data saved successfully.
so i wondered why CherryPyWSGIServer's timeout is 10.



On 1月15日, 午後8:13, "Ionel Maries Cristian" <ionel...@...> wrote:

> what's wrong with it ?
>
> On Jan 15, 2008 10:30 AM, kamona...@... <kamon...@...> wrote:
>
>
>
> > in _cpwsgiserver.py, the timeout parameter of CherryPyWSGIServer's
> > __init__ method is 10[sec] in default. the timeout value is passed to
> > python socket object in tick method of the CherryPyWSGIServer.
>
> > because CherryPyWSGIServer is wrapped by WSGIServer, the timeout value
> > ends up to be fixed to 10.
>
> > what is the reason that the default timeout value is 10 ?
>
> --http://code.google.com/p/cogen/
> ionel.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cherrypy-devel" group.
To post to this group, send email to cherrypy-devel@...
To unsubscribe from this group, send email to cherrypy-devel-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cherrypy-devel
-~----------~----~----~----~------~----~------~--~---


Re: why the CherryPyWSGIServer's timeout attribute is 10 sec?

by Ionel Maries Cristian :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

you are doing it wrong.
you should use streaming instead of changing well established timeout values.


 
2008/1/17 masayuki.takagi <kamonama2@...>:

With Cherrypy 2.2.1 I'm trying to return some csv data, dynamically
generated taking a few minutes.

with Internet Explorer(6 and 7), the returned csv data are only
saved partially.

Cherrypy leaves traceback as below:

Traceback (most recent call last):
 File "/usr/lib/python2.5/site-packages/CherryPy-2.2.1-py2.5.egg/
cherrypy/_cpwsgiserver.py", line 203, in run
   request.write (line)
 File "/usr/lib/python2.5/site-packages/CherryPy- 2.2.1-py2.5.egg/
cherrypy/_cpwsgiserver.py", line 147, in write
   self.wfile.write(d)
 File "socket.py", line 262, in write
   self.flush ()
 File "socket.py", line 249, in flush
   self._sock.sendall(buffer)
timeout: timed out


i changed CherryPyWSGIServer's timeout vlaue to 100 and tried it
again,  then whole csv data saved successfully.
so i wondered why CherryPyWSGIServer's timeout is 10.



On 1月15日, 午後8:13, "Ionel Maries Cristian" <ionel...@...> wrote:
> what's wrong with it ?
>
> On Jan 15, 2008 10:30 AM, kamona...@... <kamon...@...> wrote:
>
>
>
> > in _cpwsgiserver.py, the timeout parameter of CherryPyWSGIServer's
> > __init__ method is 10[sec] in default. the timeout value is passed to
> > python socket object in tick method of the CherryPyWSGIServer.
>
> > because CherryPyWSGIServer is wrapped by WSGIServer, the timeout value
> > ends up to be fixed to 10.
>
> > what is the reason that the default timeout value is 10 ?
>
> --http://code.google.com/p/cogen/
> ionel.


--
http://code.google.com/p/cogen/
ionel.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cherrypy-devel" group.
To post to this group, send email to cherrypy-devel@...
To unsubscribe from this group, send email to cherrypy-devel-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cherrypy-devel
-~----------~----~----~----~------~----~------~--~---

LightInTheBox - Buy quality products at wholesale price!