RE: [Zope-dev] Zope Cygwin

2001-10-31 Thread Norman Vine

Chris McDonough writes:

I wanted to torture test the Zope
session manager under the cygwin-built Zope using ab, which is good
real-world threading test.  It appears that neither ab nor wget much like
something about their communication with the cygwin-built Zope.  Here's a
wget session with a cygwin-built python/Zope combo:

--22:14:42--  http://localhost/
   = `index.html'
Connecting to localhost:80... connected!
HTTP request sent, awaiting response... 200 OK
2 Server: Zope/(unreleased version, python 2.1.1, cygwin) ZServer/1.1b1
3 Date: Wed, 17 Oct 2001 02:14:42 GMT
4 Connection: close
5 Content-Type: text/html
6 Content-Length: 3012
7

0K - .. (freeze)

It appears as if this now works wit a locally compiled Cygwin DLL
  Cygwin CVS files  2001-10-31  

wget now returns and I can now access the 'raw' Zope store 
with my editor via ftp :-))

Not really sure which patch, within the last 2 days, it was but ..

THANK YOU !

Norman


___
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] Zope Cygwin

2001-10-20 Thread Robert Collins


- Original Message -
From: Norman Vine [EMAIL PROTECTED]
To: 'Chris McDonough' [EMAIL PROTECTED]
  I wanted to torture test the Zope
 session manager under the cygwin-built Zope using ab, which is good
 real-world threading test.  It appears that neither ab nor wget much
like
 something about their communication with the cygwin-built Zope.
Here's a
 wget session with a cygwin-built python/Zope combo:
..
 Yup...  I get the same results :-(

 If you can tell me where the code is in Zope that is determining the
 Content-Length I will look into the Python  Cygwin 'C code that
 is being called.

This may well be related to the reported breakage with cygwin more
recent than 1.3.1/1.1.8 and apache. I've got a faulting setup with squid
showing the same thing,  but no time to debug (yet). You might consider
testing with 1.1.8 and seeing if that fixes the issue. If reverting does
'fix' this, and the time to cause the fault is relatively short,
consider doing a binary CVS search to find the commit that broke it.

Rob


___
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] Zope Cygwin

2001-10-20 Thread Chris McDonough

Possibly dumb question - Are there binary distributions of v 1.1.8 of 
cygwin1.dll available from cygwin.org anywhere or should I compile it 
from source?  I looked around for a while on there and it seems that I'd 
need to use CVS to check out a 1.1.8-tagged branch and compile to get 
back to that revision.

 This may well be related to the reported breakage with cygwin more
 recent than 1.3.1/1.1.8 and apache. I've got a faulting setup with squid
 showing the same thing,  but no time to debug (yet). You might consider
 testing with 1.1.8 and seeing if that fixes the issue. If reverting does
 'fix' this, and the time to cause the fault is relatively short,
 consider doing a binary CVS search to find the commit that broke it.
 
 Rob


___
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] Zope Cygwin

2001-10-20 Thread Robert Collins




- Original Message -
From: Chris McDonough [EMAIL PROTECTED]
To: Robert Collins [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; 'Chris McDonough' [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Sunday, October 21, 2001 3:08 AM
Subject: Re: [Zope-dev] Zope  Cygwin


 Possibly dumb question - Are there binary distributions of v 1.1.8 of
 cygwin1.dll available from cygwin.org anywhere or should I compile it
 from source?  I looked around for a while on there and it seems that
I'd
 need to use CVS to check out a 1.1.8-tagged branch and compile to get
 back to that revision.

I'd suggest using CVS, if only to get ready for binary searching :}.

-Rob



___
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] Zope Cygwin

2001-10-19 Thread Norman Vine

Andreas Jung writes:

I think its in ZServer/HTTPResponse.py

- Original Message -
From: Norman Vine [EMAIL PROTECTED]
To: 'Chris McDonough' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, October 18, 2001 20:18
Subject: RE: [Zope-dev] Zope  Cygwin

 If you can tell me where the code is in Zope that is determining the
 Content-Length I will look into the Python  Cygwin 'C code that
 is being called.

Thanks, I found it

However let me show off my ignorance here

=
$ wget -S http://localhost:8080
--21:12:56--  http://localhost:8080/
   = `index.html'
Connecting to localhost:8080... connected!
HTTP request sent, awaiting response...
200 OK
2 Server: Zope/(Zope 2.4.1 (source release, python 2.1, linux2), python
2.1.1, cygwin) ZServer/1.1b1
3 Date: Fri, 19 Oct 2001 01:12:56 GMT
4 Connection: close
5 Content-Type: text/html
6 Content-Length: 3022
7

0K - ..WGET HANGS HERE  

509 Zope-2.4.1-src
$ ./stop
[1]+  Terminated  ./start

510 Zope-2.4.1-src
$ wc index.html
105 3623022 index.html
==

Note that after Ctrl-C'ing out of wget
index.html has been recieved
and that its length is 3022 bytes !!

I know I am missing something obvious here, but 
why was Chris getting 194 bytes with a VC++ compiled Zope ??
and what does this 194 bytes represent.
My guess is that it is the length of the response's header
but I do not see where this is determined.
FWIW - I have traced the Zope code back into
Zpublisher.BaseResponse

=== snipped from earlier msg ===
Here's a session with a VC++-built Zope:

$ wget -S http://localhost:8080/
--22:17:20--  http://localhost:8080/
   = `index.html'
Connecting to localhost:8080... connected!
HTTP request sent, awaiting response... 200 OK
2 Server: Zope/(unreleased version, python 2.1.0, win32) ZServer/1.1b1
3 Date: Wed, 17 Oct 2001 02:17:20 GMT
4 Connection: close
5 Content-Type: text/html
6 Content-Length: 194
7

0K -[100%]
===

Cheers

Norman


___
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] Zope Cygwin

2001-10-19 Thread Chris McDonough

 Note that after Ctrl-C'ing out of wget
 index.html has been recieved
 and that its length is 3022 bytes !!
 
 I know I am missing something obvious here, but 
 why was Chris getting 194 bytes with a VC++ compiled Zope ??

I was wgetting a very short page... one that was essentially an HTML 
representation of This is the contents of the foobar folder.  OTOH, 
you're probably looking at the QuickStart page or something, which is 
much longer.  The content length is the size of the payload of the 
response (the number of bytes that makes up, in this case, the HTML).

I haven't had a chance to look further at the problem unfortunately.

-- 
Chris McDonoughZope Corporation
http://www.zope.org http://www.zope.com
Killing hundreds of birds with thousands of stones


___
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] Zope Cygwin

2001-10-18 Thread Norman Vine

Chris McDonough writes:

Hope it's OK to continue crossposting this thread.

 I wanted to torture test the Zope
session manager under the cygwin-built Zope using ab, which is good
real-world threading test.  It appears that neither ab nor wget much like
something about their communication with the cygwin-built Zope.  Here's a
wget session with a cygwin-built python/Zope combo:

--22:14:42--  http://localhost/
   = `index.html'
Connecting to localhost:80... connected!
HTTP request sent, awaiting response... 200 OK
2 Server: Zope/(unreleased version, python 2.1.1, cygwin) ZServer/1.1b1
3 Date: Wed, 17 Oct 2001 02:14:42 GMT
4 Connection: close
5 Content-Type: text/html
6 Content-Length: 3012
7

0K - .. (freeze)

Here's a session with a VC++-built Zope:

$ wget -S http://localhost:8080/
--22:17:20--  http://localhost:8080/
   = `index.html'
Connecting to localhost:8080... connected!
HTTP request sent, awaiting response... 200 OK
2 Server: Zope/(unreleased version, python 2.1.0, win32) ZServer/1.1b1
3 Date: Wed, 17 Oct 2001 02:17:20 GMT
4 Connection: close
5 Content-Type: text/html
6 Content-Length: 194
7

0K -[100%]

22:17:20 (9.47 KB/s) - `index.html' saved [194/194]

It's almost as if the wrong content-length is provided by the Cygwin-built
Zope and both wget and ab are waiting for data.  Browsers OTOH don't seem
to
care; they happily render the page as its given to them by the Cygwin-built
Zope.  I'll investigate this further when possible.

Yup...  I get the same results :-(

If you can tell me where the code is in Zope that is determining the
Content-Length I will look into the Python  Cygwin 'C code that
is being called.

Cheers

Norman


___
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] Zope Cygwin

2001-10-18 Thread Andreas Jung

I think its in ZServer/HTTPResponse.py

- Original Message - 
From: Norman Vine [EMAIL PROTECTED]
To: 'Chris McDonough' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, October 18, 2001 20:18
Subject: RE: [Zope-dev] Zope  Cygwin

 If you can tell me where the code is in Zope that is determining the
 Content-Length I will look into the Python  Cygwin 'C code that
 is being called.
 
 Cheers
 
 Norman
 
 
 ___
 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] Zope Cygwin

2001-10-10 Thread Phil Harris

I had a brief conversation with the Cygwin Python maintainer a little while back, 
supposedly the next release of Cygwin will have a threaded Python (2.1.1 or maybe even 
higher).

Phil

On Wed, 10 Oct 2001 13:17:22 -0400
Chris McDonough [EMAIL PROTECTED] wrote:

  FYI
  I finally have a Cygwin compiled Zope running in a Cygwin enviroment.
  This is with the very latest Cygwin distribution augmented by a locally
  compiled Cygwin as represented by the current Cygwin CVS files.
 
 Cool!  This is excellent.  This means that I stand a shot at getting rid of
 200 miserable MB of VC++ on my machine.
 
 I presume this means that Cygwin Python ships with threads enabled?
 
 - C
 
 
 
 ___
 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 )