Re: [Zope-dev] Making a ZSQL.DA fully multi-threaded?

2004-07-21 Thread Brad Clements
On 21 Jul 2004 at 16:44, Chris Withers wrote:

> My point is that unless you implement a connection pool model independent
> of Zope's threading, you WILL run into problems if you have ANY kind of
> timeout where the DA isn't smnart enough to reconnect connections that have
> closed...

I understand. sapdbapi is *supposed* to reconnect on timeout.

> Tada: You made sure that one connection will get used and you won't get
> stale ones being timed out and then randomly selected for use at some later
> point ;-)

I disagree that this was the cause of the segfaults, since I had segfaults within 
minutes of 
starting zope with more than 1 thread, way less than the timeout time.

> Either that or restructure the DA like I did for ZOracleDA ;-)

I want to do that. Hope my client will pay for it ;-)


-- 
Brad Clements,[EMAIL PROTECTED]   (315)268-1000
http://www.murkworks.com  (315)268-9812 Fax
http://www.wecanstopspam.org/   AOL-IM: BKClements

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


Re: [Zope-dev] Making a ZSQL.DA fully multi-threaded?

2004-07-21 Thread Chris Withers
Brad Clements wrote:
I have set the SAPDB timeout to 32400 seconds.
Unless you have an extremely heavily loaded Zope, that's too low, and may
be causing you problems...
That is the maximum allowed value in dbmgui.
My point is that unless you implement a connection pool model independent of 
Zope's threading, you WILL run into problems if you have ANY kind of timeout 
where the DA isn't smnart enough to reconnect connections that have closed...

Anyway, after setting Zope to be single threaded, I have not had any segfaults.
Tada: You made sure that one connection will get used and you won't get stale 
ones being timed out and then randomly selected for use at some later point ;-)

Get rid of the connection timeouts, and you should be fine for multi-threaded Zope.
Either that or restructure the DA like I did for ZOracleDA ;-)
Chris
--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Troubles with hotfix20040714

2004-07-21 Thread Fred Drake
On Tue, 20 Jul 2004 10:40:22 -0700 (PDT), Cliff O.
<[EMAIL PROTECTED]> wrote:
> Ok, so I just finished loading up 2.7.2rc1 and all seems well using the
> same products and database as before.  I can probably migrate the site
> once 2.7.2 final is released but, of course, it would be great to apply
> the hotfix in the meantime.

Unfortunately, I don't think making the hotfix any better is going to
be easy; it's still a product which  is initialized after some of the
affected code has been loaded and possibly used.  Since 2.7.2 should
be coming out very soon, I'm not sure it's worth the additional effort
to elaborate the fix any further.

I'll ask around here at ZC to be sure; others may disagree with me.

Andreas:  Do you have a date for the 2.7.2 final release?


  -Fred

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


[Zope-dev] AW: [Zope3-dev] Re: Stop the zope process (was: Photo product (wasquestions about ZConfig and ZCML))

2004-07-21 Thread Roger ineichen
Derrick 'dman' Hudson wrote:
> Gesendet: Dienstag, 20. Juli 2004 18:01
> An: [EMAIL PROTECTED]
> Betreff: [Zope3-dev] Re: Stop the zope process (was: Photo 
> product (wasquestions about ZConfig and ZCML))
> 
> 
> On Tue, Jul 20, 2004 at 09:52:37AM -0400, Casey Duncan wrote:
> 
> | > > Roger ineichen wrote:
> | > > > If you hit Ctrl+C, nothing will happen up to a minute
> or more.
> | > > > Just hit Ctrl+C and click on a link in the ZMI/browser. This
> | > > will kill the
> | > > > process immediately.
> 
> | AFAIK this is an artifact of asyncore on Windows. The behavior of
> | select() is different then on Posix platforms. Perhaps someone with
> | more asyncore/Windows zen can fill in additional details.
> 
> I was going to suggest that that is a Windows issue because I
> never have that problem on linux, with zope2 or zope3.
> 
> -D

Yes, windows 2000 and XP

Regards
Rorger

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


[Zope-dev] Zope Package Scripts

2004-07-21 Thread Christian Theune
Hi,

i've just compiled the windows version of Zope 2.7.2 for release. Since
the 2.7.1 release I'm a bit annoyed that the resulting final packages
get a -0 as a minor release number, which looks awful IMHO. Could
someone make the sdist scripts not do this?

Thanks,
Christian

-- 
Christian Theune <[EMAIL PROTECTED]>
gocept gmbh & co. kg


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] UnpickleableError using SESSION in 2.7.2RC1

2004-07-21 Thread Dieter Maurer
Brad Clements wrote at 2004-7-19 11:26 -0400:
>Can sessions store instance objects created by an external method?

It can provided they are picklable...

> ...
>  Module ZODB.Connection, line 416, in commit
>   - __traceback_info__: (('Products.Transience.TransientObject', 'TransientObject'), 
>'\x00\x00\x00\x00\x00\x00\x00%', '')
>UnpickleableError: Cannot pickle at 
>409d7800> objects

Acquisition wrappers are not picklable.

>My external method looks like this::
>
>def CreateInstanceItem(**kw):
>"""Generate an instance item"""
>return InstanceItem(**kw)

This does not return a wrapped instance.

> ...
>I = container.CreateInstanceItem(userid=userid,..., user=user, ...)
> ...
>SESSION['user_details'] = I
>
>It seems like the 'I' object is wrapped somehow.

Your "I" is not wrapped. The problem must be somewhere else.

Almost surely, the problem is the passed in "user" object which
is an acquisition wrapper and therefore cannot be pickled.

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