Re: [Zope-dev] CST 0.8 Updater Fixed...

2001-05-02 Thread Chris Withers

Chris McDonough wrote:
 
 But to make it happen you'd need ZPublisher to support a
 callback from ZServer when a connection was terminated.
 Since I know little about either, I'm not entirely confident
 I can be more specific.

yeah, well, even I was impressed how high above my head that flew, so I think
I'll leave it be in terms on trying to implement it. ;-)

cheers,

Chris

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] CST 0.8 Updater Fixed...

2001-04-29 Thread Chris Withers

Chris McDonough wrote:
 
 This is due to the relationship between ZServer and the publisher.
 Sometimes it can be a bad thing... especially when there's an expensive
 method that folks fire off that takes a long time.. nothing comes back to
 their browser, so they press stop and hit the page again... etc. etc.  So
 you have a number of threads hung.
 
 Sometimes it can be a good thing, however, such as when you want to go to
 Slashdot after you fire off a 'pack'.  ;-)

Hmmm... does make for some pretty simple and very effective DOS attacks though
:-S

What would it take to fix it?

cheers,

Chris

PS: Your Slashdot viewing is easily solved; open another browser window ;-)

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] CST 0.8 Updater Fixed...

2001-04-29 Thread Chris McDonough

 Hmmm... does make for some pretty simple and very
 effective DOS attacks though
 :-S
 
 What would it take to fix it?

That depends on if you think it's broken... ;-)

But to make it happen you'd need ZPublisher to support a
callback from ZServer when a connection was terminated.
Since I know little about either, I'm not entirely confident
I can be more specific.

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] CST 0.8 Updater Fixed...

2001-04-27 Thread Chris Withers

Chris Withers wrote:
 
 It's running and working okay, but every so often, when running it, I get:
 
 2001-04-27T09:15:23 PANIC(300) ZODB A storage error occurred in the last phase o

I stopped the above by wrapping the code as follows:


get_transaction().begin()
 path = self.getSessionDataContainerPath()
 timeout_mins = self.getInternalDCTimeoutMins()
 onstart = self.getOnStartPath()
 onend = self.getOnEndPath()
 
 container = self.aq_parent
 ob = SessionDataManager(id, path, title, timeout_mins, onstart, onend)
 container.manage_delObjects(ids=[id])
 container._setObject(id, ob)
get_transaction().note(Done '%s' % notepath)
get_transaction().commit()

I wonder why it's necessary? Something to do with the weirdy mounted internal
session data container?

cheers,

Chris

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] CST 0.8 Updater Fixed...

2001-04-27 Thread Chris Withers

Chris Withers wrote:
 
 Chris Withers wrote:
 
  It's running and working okay, but every so often, when running it, I get:
 
  2001-04-27T09:15:23 PANIC(300) ZODB A storage error occurred in the last phase o
 
 I stopped the above by wrapping the code as follows:

Unfortunately, it still sometimes hangs on certain instances :-S
No error, no crash, just stops doing what it's doing (and Zope drops right of
'top' IUKWIM)

Playing with this, I noticed that Zope doesn't stop processing a request if the
browser goes away. Is that a bad thing? I would have thought so if you
inadvertantly set an expensive method off (like recataloging several big
catalogs all in one go ;-) and then want to back out...

help appreciated as always :-)

Chris

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] CST 0.8 Updater Fixed...

2001-04-27 Thread Chris McDonough

 I stopped the above by wrapping the code as follows:

snip

Cool!

 I wonder why it's necessary? Something to do with the weirdy mounted
internal
 session data container?

As Colonel Klink says so well, I see nussing!



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



OT: hogans heroes club was: [Zope-dev] CST 0.8 Updater Fixed...

2001-04-27 Thread Chris McDonough

You are correct sir!

The Zope community appreciates this effort!  ;-)

- C

- Original Message -
From: Schmidt, Allen J. [EMAIL PROTECTED]
To: 'Chris McDonough' [EMAIL PROTECTED]; Chris Withers
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, April 27, 2001 12:58 PM
Subject: RE: [Zope-dev] CST 0.8 Updater Fixed...


 Sorry to contradict you Chris, but it was actually Sgt. Shultz who stated
 that famous line.

 It's not often I can contribute so I thought I would give something back!
 8^)

 Allen
 (active member of ZA  -  -Zopaholics Anonymous)

 -Original Message-
 From: Chris McDonough [mailto:[EMAIL PROTECTED]]
 Sent: Friday, April 27, 2001 12:21 PM
 To: Chris Withers; [EMAIL PROTECTED]
 Subject: Re: [Zope-dev] CST 0.8 Updater Fixed...


  I stopped the above by wrapping the code as follows:
 
 snip

 Cool!

  I wonder why it's necessary? Something to do with the weirdy mounted
 internal
  session data container?

 As Colonel Klink says so well, I see nussing!



 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



RE: [Zope-dev] CST 0.8 Updater Fixed...

2001-04-27 Thread Schmidt, Allen J.

Sorry to contradict you Chris, but it was actually Sgt. Shultz who stated
that famous line.

It's not often I can contribute so I thought I would give something back!
8^)

Allen
(active member of ZA  -  -Zopaholics Anonymous)

-Original Message-
From: Chris McDonough [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 27, 2001 12:21 PM
To: Chris Withers; [EMAIL PROTECTED]
Subject: Re: [Zope-dev] CST 0.8 Updater Fixed...


 I stopped the above by wrapping the code as follows:

snip

Cool!

 I wonder why it's necessary? Something to do with the weirdy mounted
internal
 session data container?

As Colonel Klink says so well, I see nussing!



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )