Re: [Zope-dev] standard_html_header standard_html_footer in Zope 2.12

2009-10-16 Thread Hanno Schlichting
On Wed, Oct 14, 2009 at 5:22 AM, Baiju M mba...@zeomega.com wrote: On Wed, Oct 14, 2009 at 12:54 AM, Hanno Schlichting ha...@hannosch.eu wrote: On Tue, Oct 13, 2009 at 2:10 PM, Baiju M mba...@zeomega.com wrote:    Is standard_html_header standard_html_footer removed in Zope 2.12 ? It looks

[Zope-dev] Zope Tests: 8 OK

2009-10-16 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Thu Oct 15 12:00:00 2009 UTC to Fri Oct 16 12:00:00 2009 UTC. There were 8 messages: 8 from Zope Tests. Tests passed OK --- Subject: OK : Zope-2.10 Python-2.4.6 : Linux From: Zope Tests Date: Thu Oct 15 20:45:57 EDT 2009 URL:

Re: [Zope-dev] Zope closes connection if the client closes the write-end of connection

2009-10-16 Thread Izak Burger
Hi again, Izak Burger wrote: I eventually distilled the check varnish uses into a small C program, and an interesting problem shows up. When you call shutdown(fd, SHUT_WR) on your socket connection, in effect telling zope that you're done talking to it, it looks like zope responds in kind

Re: [Zope-dev] Zope closes connection if the client closes the write-end of connection

2009-10-16 Thread Lennart Regebro
2009/10/16 Izak Burger i...@upfrontsystems.co.za: Secondly, since zope still requires older python versions to run Zope 2.12 run on Python 2.6. 2.6.4a1 is coming out the weeken, so if this is a Python bug and we want it in 2.6.4 we need to get it in before a b1, which also probably will be

Re: [Zope-dev] Zope closes connection if the client closes the write-end of connection

2009-10-16 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Izak Burger wrote: Hi again, Izak Burger wrote: I eventually distilled the check varnish uses into a small C program, and an interesting problem shows up. When you call shutdown(fd, SHUT_WR) on your socket connection, in effect telling zope

Re: [Zope-dev] Zope closes connection if the client closes the write-end of connection

2009-10-16 Thread Leonardo Rochael Almeida
On Fri, Oct 16, 2009 at 16:36, Tres Seaver tsea...@palladion.com wrote: [...] You might also look at fixing varnish: I don't know of any valid reason for it to be using the half-open connection model to test that an HTTP-based backend is up Going out on a limb here, but I think Varnish might

Re: [Zope-dev] Zope closes connection if the client closes the write-end of connection

2009-10-16 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leonardo Rochael Almeida wrote: On Fri, Oct 16, 2009 at 16:36, Tres Seaver tsea...@palladion.com wrote: [...] You might also look at fixing varnish: I don't know of any valid reason for it to be using the half-open connection model to test that

Re: [Zope-dev] Zope closes connection if the client closes the write-end of connection

2009-10-16 Thread Lennart Regebro
2009/10/16 Tres Seaver tsea...@palladion.com: Hmmm?  A TCP socket corrresponds to exactly one open file descriptor, which has to stick around for the response data to come back on. Half-closing it is just silly, and is only guaranteed to work where both ends expect to handle this case.

Re: [Zope-dev] Zope closes connection if the client closes the write-end of connection

2009-10-16 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lennart Regebro wrote: 2009/10/16 Tres Seaver tsea...@palladion.com: Hmmm? A TCP socket corrresponds to exactly one open file descriptor, which has to stick around for the response data to come back on. Half-closing it is just silly, and is only

Re: [Zope-dev] Zope closes connection if the client closes the write-end of connection

2009-10-16 Thread Izak Burger
Tres Seaver wrote: You might also look at fixing varnish: I don't know of any valid reason for it to be using the half-open connection model to test that an HTTP-based backend is up -- certainly no browser in the world does that; instead, modern browsers nearly always try to keep the

Re: [Zope-dev] Zope closes connection if the client closes the write-end of connection

2009-10-16 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Izak Burger wrote: Tres Seaver wrote: You might also look at fixing varnish: I don't know of any valid reason for it to be using the half-open connection model to test that an HTTP-based backend is up -- certainly no browser in the world does

Re: [Zope-dev] Testrunner option for running tests in random order?!?

2009-10-16 Thread Sebastien Douche
On Fri, Oct 9, 2009 at 14:33, Christian Theune c...@gocept.com wrote: Hi Christian. That's what working branches are for. Done : http://svn.zope.org/zope.testing/branches/sdouche-shuffle/ -- Sebastien Douche sdou...@gmail.com Twitter: http://bit.ly/afkrK (agile, python, open source)

Re: [Zope-dev] zope.site.hooks

2009-10-16 Thread Fabio Tranchitella
* 2009-10-14 17:33, Martijn Faassen wrote: That's more or less what I have in mind. The suggestions are just about trying to make it prettier. ... [snip] I applied your suggestions, and I think now the code is more robust; with this branch, all the ZTK tests pass except zope.sendmail, which

Re: [Zope-dev] Zope closes connection if the client closes the write-end of connection

2009-10-16 Thread Izak Burger
Leonardo Rochael Almeida wrote: Going out on a limb here, but I think Varnish might be trying to save on file-descriptors. Interestingly, The Squid FAQ almost seems to imply that closing the write-side can cause more file-descriptors to be used. Squid can apparently not tell the difference

Re: [Zope-dev] Zope closes connection if the client closes the write-end of connection

2009-10-16 Thread Lennart Regebro
From the HTTP/1.1 spec: Servers SHOULD NOT close a connection in the middle of transmitting a response, unless a network or client failure is suspected. But on the other hand: When a client or server wishes to time-out it SHOULD issue a graceful close on the transport connection.

[Zope-dev] getProxiedObject not imported in zope.locaton.location

2009-10-16 Thread Attila Oláh
Hi, Here's a snippet from zope.location.location: __doc__ = ClassAndInstanceDescr( lambda inst: getProxiedObject(inst).__doc__, lambda cls, __doc__ = __doc__: __doc__, ) However, getProxiedObject is never imported in this file (version 3.5.0 from pypi). Is this a