As just a quick fix, I'd wrap the call to Cookie.load in HTTPRequest.
Jay
> -----Original Message-----
> From: Jeff Johnson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 04, 2001 3:17 PM
> To: [EMAIL PROTECTED]
> Subject: [Webware-devel] Bad cookies hang Webkit
>
>
> Someone hitting my site must have a bad cookie and when the Cookie
> parser fails, the thread just hangs. Once all threads are
> hung the site
> stops responding. I don't know the code well enought to know where to
> put the try/except but I think there should be a general try/except
> around handleRequest(). Any ideas or comments?
>
>
> Traceback (most recent call last):
> File "/usr/local/lib/python2.1/threading.py", line 378, in
> __bootstrap
> self.run()
> File "/usr/local/lib/python2.1/threading.py", line 366, in run
> apply(self.__target, self.__args, self.__kwargs)
> File "/usr/Webware/Webware/WebKit/ThreadedAppServer.py",
> line 247, in
> threadloop
> rh.handleRequest()
> File "/usr/Webware/Webware/WebKit/ThreadedAppServer.py",
> line 479, in
> handleRequest
> transaction = self.server._app.dispatchRawRequest(dict, strmOut)
> File "WebKit/Application.py", line 310, in dispatchRawRequest
> File "WebKit/Application.py", line 755, in createRequestForDict
> File "WebKit/HTTPRequest.py", line 44, in __init__
> File "WebUtils/Cookie.py", line 605, in load
> for K,V in self.items():
> File "WebUtils/Cookie.py", line 625, in __ParseString
> n = len(str) # Length of string
> IndexError: string index out of range
>
> _______________________________________________
> Webware-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/webware-devel
>
----------------------------------------------------------------------------
This e-mail and any attachments may be confidential or legally privileged.
If you received this message in error or are not the intended recipient, you
should destroy the e-mail message and any attachments or copies, and you are
prohibited from retaining, distributing, disclosing or using any information
contained herein. Please inform us of the erroneous delivery by return
e-mail.
Thank you for your cooperation.
----------------------------------------------------------------------------
_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-devel