On Tue, Nov 25, 2003 at 03:42:42PM -0500, Neil Schemenauer wrote: > On Tue, Nov 25, 2003 at 12:33:36PM -0800, Dave Kuhlman wrote: > > File "/usr/local/lib/python2.3/site-packages/scgi/scgi_server.py", line 29, in ns_read_size > > return long(size) > > ValueError: invalid literal for long(): GET /qotd HTTP/1.1 > > User-Agent > > Something very strange is going on. I would suggest some low-level > debugging. As root: > > tcpdump -i lo -s 1500 -wport 3001 > > Try loading a page again. Interrupt the tcpdump process and run (as > a normal user): > > ethereal -r > > Select the TCP packet with SYN flag set and use the "follow TCP > stream" command to find out what is being sent to the SCGI server. > It seems like mod_scgi is violating the protocol. That's weird and > something else must be going on. My, that was fun. Some of this stuff was not on my Linux system. So, here's what I did: built libpcap-0.7.2, built tcpdump-3.7.2, and built ethereal-0.9.16. Then, ran tcpdump. Then ran ethereal. I selected one of the lines that says SYN, and when I do "Follow TCP stream", here is what I see: GET /qotd HTTP/1.1. Host: localhost:3001. User-Agent: Mozilla/5.0 (X11; U; Linux i686; Debian/1.3.3.20030330-0.libranet.2) Gecko/20030316 Galeon/1.3.3. Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q= 0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1. Accept-Encoding: gzip, deflate, compress;q=0.9. Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7. Keep-Alive: 300. Connection: keep-alive. . And, when I use Opera as my Web browser to make the request, I get: GET /qotd HTTP/1.1. User-Agent: Opera/7.23 (X11; Linux i686; U) [en]. Host: localhost:3001. Accept: text/html, application/xml;q=0.9, application/xhtml+xml;q=0.9, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1. Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1. Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0. Connection: Keep-Alive, TE. TE: deflate, gzip, chunked, identity, trailers. . Is that what I should be looking at? I'm guessing that looks OK. Yes? Or, is there supposed to be something in front of the "GET /qotd HTTP/1.1."? I'll try to look into it more in the morning when I'm brighter. But, configuring mod_scgi seems pretty simple. Maybe with the light of day, I'll see something ... Dave -- Dave Kuhlman dkuhlman@rexx.com http://www.rexx.com/~dkuhlman