RE: [Webware-devel] Bad cookies hang Webkit

2001-09-04 Thread Geoff Talvola
At 04:46 PM 9/4/01 -0500, Love, Jay wrote: >Yeah, a try: except: around handleRequest would catch a lot of this, I >THINK, but it makes me a little nervous to do a catch that big. It just >seems a little cludgy. But I guess as long as the except logs the error >somehow (just print to stdout), its

RE: [Webware-devel] Bad cookies hang Webkit

2001-09-04 Thread Love, Jay
Yeah, a try: except: around handleRequest would catch a lot of this, I THINK, but it makes me a little nervous to do a catch that big. It just seems a little cludgy. But I guess as long as the except logs the error somehow (just print to stdout), its better than nothing. I haven't looked at any o

RE: [Webware-devel] Bad cookies hang Webkit

2001-09-04 Thread Geoff Talvola
At 05:00 PM 9/4/01 -0400, Jeff Johnson wrote: >I guess there's a bug in Cookie.py but shouldn't AppServer be more >robust? A bug like this should cause an error page (which it does) but >it shouldn't be able to hang the entire WebKit server. If we put a >try/except around handleRequest would tha

RE: [Webware-devel] Bad cookies hang Webkit

2001-09-04 Thread Jeff Johnson
I guess there's a bug in Cookie.py but shouldn't AppServer be more robust? A bug like this should cause an error page (which it does) but it shouldn't be able to hang the entire WebKit server. If we put a try/except around handleRequest would that make it harder for bad servlet code to hang the

Re: [Webware-devel] Bad cookies hang Webkit

2001-09-04 Thread Geoff Talvola
At 03:16 PM 9/4/01 -0400, Jeff Johnson wrote: >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

RE: [Webware-devel] Bad cookies hang Webkit

2001-09-04 Thread Jeff Johnson
OK, here's the change to HTTPRequest line 44ish. Should this be added to CVS? if self._environ.has_key('HTTP_COOKIE'): try: self._cookies.load(self._environ['HTTP_COOKIE']) except:

RE: [Webware-devel] Bad cookies hang Webkit

2001-09-04 Thread Love, Jay
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

[Webware-devel] Bad cookies hang Webkit

2001-09-04 Thread Jeff Johnson
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 handleReques

RE: [Webware-devel] big problems @ vorbis.com

2001-09-04 Thread Jeff Johnson
I've cleaned up my Database module since last week and added auto re-connects. I think it would be a good addition to DBPool. Could someone give it a look and see if it would be useful to add it to Webware? It solves the problems listed in the Vorbis thread and provides the following benefits:

Re: [Webware-devel] PostgreSQL

2001-09-04 Thread Geoff Talvola
At 12:04 PM 9/3/01 -0700, Maurice Davis wrote: >Hi, > >I'm new to Webware and to this list. If I'm posting this in the >wrong place, please let me know. > >I've been using Zope for over 2 years and only became aware of Webware >last week. Over the last year or so I've found myself using Zope Proje

[Webware-devel] Re: [Webware-discuss] big problems @ vorbis.com

2001-09-04 Thread Clark C . Evans
On Tue, Sep 04, 2001 at 01:17:25AM +0200, Federico Di Gregorio wrote: | you have three solutions here: | | 1/ commit() just before SELECT; | | 2/ use a single connection, all the cursor derived from it will see | the changes to the data immediately; | | 3/ put the connection y