[Zope3-dev] Re: [Zope3-Users] Re: Is this a bug of HTTP response's head handling? (publisherhttpserver.py)

2006-09-21 Thread Simon Hang
. close_it = 1 On 9/21/06, Philipp von Weitershausen [EMAIL PROTECTED] wrote: Simon Hang wrote: How about below changes?There aren't many of us who know the zope.server code that well,unfortunately. This is one of the reasons we want to get out of theserver business.That said, it would *much* easier

[Zope3-dev] Re: [Zope3-Users] Re: Is this a bug of HTTP response's head handling? (publisherhttpserver.py)

2006-09-21 Thread Simon Hang
Philipp, Sorry for being lazy, and thanks for the tips. Here is my update version. --- httptask.py.orig Fri Jan 06 02:15:48 2006+++ httptask.py Fri Sep 22 09:13:48 2006@@ -126,6 +126,11 @@ else: close_it = 1 elif version == '1.1':+ #modified by Simon + if 'connection: close' in (header.lower() for

[Zope3-dev] Is this a bug of HTTP response's head handling? (publisherhttpserver.py)

2006-09-18 Thread Simon Hang
Dear all, While I was exploringmy options to implement NTLM authentication, I found some strange behavior of Zope HTTP server. in zope.server.http.wsgihttpserver.WSGIHTTPServer, It use below function to handle response's head: def start_response(status, headers): # Prepare the headers for

Re: [Zope3-dev] (zope/app/cache/ram.py) class Storage's cleanup problem.

2005-12-30 Thread Simon Hang
Hi Stephan, Is these code all right? Regards, SimonOn 11/13/05, Simon Hang [EMAIL PROTECTED] wrote: Thanks Stephan, Here is the test:(test_ramcache.py) class TestStorage(TestCase): def test_getEntry(self): --snipped-- def test_getEntry_do_cleanup(self): from zope.app.cache.ram import

Re: [Zope3-dev] (zope/app/cache/ram.py) class Storage's cleanup problem.

2005-11-12 Thread Simon Hang
] wrote: On Tuesday 01 November 2005 05:10, Simon Hang wrote: Dear all, I'm happen to find out call Storage only do cleanup when new Entry comes and do nothing when entries get from storage. So entries will be next expired if there are only read activities.I agree with your analysis and solution

[Zope3-dev] (zope/app/cache/ram.py) class Storage's cleanup problem.

2005-11-02 Thread Simon Hang
Dear all, I'm happen to find out call Storage only do cleanup when new Entry comes and do nothing when entries get from storage. So entries will be next expired if there are only read activities. So I suggest we may change the getEntry as below: def getEntry(self, ob, key): # start of insert