HTTP Error 408 /409 - Internet Explorer 6 (CherryPy: 3.1.2)

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

HTTP Error 408 /409 - Internet Explorer 6 (CherryPy: 3.1.2)

by Gerold Penz-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


CherryPy: 3.1.2

Hello!

Sorry, my English ist not good:

I tryed out my website with an "Internet Explorer 6". If I open a page
and wait 30 seconds and klick on the next (internal) link -- the
browser shows "HTTP Error 408 /409". This is reproducable.

I don´t know what I crash with this change, but it helps:

*cherrypy/wsgiserver/__init__.py:*

OLD:

    except socket.error, e:
        errnum = e.args[0]
        if errnum == 'timed out':
            if req and not req.sent_headers:
                req.simple_response("408 Request Timeout")
        elif errnum not in socket_errors_to_ignore:
            if req and not req.sent_headers:
                req.simple_response("500 Internal Server Error",
                                    format_exc())
        return

NEW:

    except socket.error, e:
        errnum = e.args[0]
        if errnum not in socket_errors_to_ignore:
            if req and not req.sent_headers:
                req.simple_response("500 Internal Server Error",
                                    format_exc())
        return

Regards,
Gerold
:-)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users@...
To unsubscribe from this group, send email to cherrypy-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: HTTP Error 408 /409 - Internet Explorer 6 (CherryPy: 3.1.2)

by kython :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Gerold,

Assuming your using apache then this is a better way of fixing the problem I believe.

Kyle

On Tue, Aug 4, 2009 at 10:48 AM, gerold <gerold.penz@...> wrote:

CherryPy: 3.1.2

Hello!

Sorry, my English ist not good:

I tryed out my website with an "Internet Explorer 6". If I open a page
and wait 30 seconds and klick on the next (internal) link -- the
browser shows "HTTP Error 408 /409". This is reproducable.

I don´t know what I crash with this change, but it helps:

*cherrypy/wsgiserver/__init__.py:*

OLD:

   except socket.error, e:
       errnum = e.args[0]
       if errnum == 'timed out':
           if req and not req.sent_headers:
               req.simple_response("408 Request Timeout")
       elif errnum not in socket_errors_to_ignore:
           if req and not req.sent_headers:
               req.simple_response("500 Internal Server Error",
                                   format_exc())
       return

NEW:

   except socket.error, e:
       errnum = e.args[0]
       if errnum not in socket_errors_to_ignore:
           if req and not req.sent_headers:
               req.simple_response("500 Internal Server Error",
                                   format_exc())
       return

Regards,
Gerold
:-)




--
Thanks,

Kyle

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


Re: HTTP Error 408 /409 - Internet Explorer 6 (CherryPy: 3.1.2)

by jepr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Gerold and Kyle,

I'm having the same problem with CherryPy 3.1.2 and IE 6.0.28800.  I
am not running behind Apache, nor am I using WSGI.  The error is not
reproducible.  It has been sporadic, but it is happening with greater
frequency now.

Have either one of you discovered a solution?

Thanks much,

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


Re: HTTP Error 408 /409 - Internet Explorer 6 (CherryPy: 3.1.2)

by João Pinto-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,
Please try to apply the fix from http://www.cherrypy.org/ticket/940 .


2009/9/24 jepr <jprescottroy@...>

Hi Gerold and Kyle,

I'm having the same problem with CherryPy 3.1.2 and IE 6.0.28800.  I
am not running behind Apache, nor am I using WSGI.  The error is not
reproducible.  It has been sporadic, but it is happening with greater
frequency now.

Have either one of you discovered a solution?

Thanks much,

Joann




--
João Pinto
IRC: joaopinto @ irc.freenode.net
Jabber ID: lamego.pinto@...
GetDeb Team Leader - http://www.getdeb.net

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