durusmail: qp: http get kills durus
http get kills durus
2005-11-23
2005-11-24
2005-11-25
2005-11-26
2005-11-27
Re: http get kills durus
2005-11-28
http get kills durus
mario ruggier
2005-11-23
Hi,

just stumbled on this by accident....

If I run a qp site, say for example, we use the proto example of qp,
with its default settings, i.e. durus server on 7002, qp web server on
8002 (actually I added a "max_children: 1" entry to its configuration
dict) :

$ qp -s proto start
durus[4240] started at 2005-11-23 17:36:06.989118 UTC
durus[Ready with 9 objects]
web[4241] started at 2005-11-23 17:36:07.049744 UTC
$ ps -aux | grep pyth
mario   4240   0.0  0.4    36360   1872 std  S     6:36PM   0:00.04
python /Library/Frameworks/Python.framework/Versions/2.4/bin/qp -s
proto start
mario   4241   0.0  0.3    36360   1344 std  S     6:36PM   0:00.04
python /Library/Frameworks/Python.framework/Versions/2.4/bin/qp -s
proto start
mario   4242   0.0  0.4    36360   1968 std  S     6:36PM   0:00.03
python /Library/Frameworks/Python.framework/Versions/2.4/bin/qp -s
proto start
mario   4244   0.0  0.0    18644     92 std  R+    6:36PM   0:00.00
grep pyth
$

Then I view with a browser the URL: http://localhost:8002/database/
it is just fine...

If, however, I load this URL instead: http://localhost:7002/database/
the browser comes back with the message that "can’t open the page
“http://localhost:7002/database/” because it could not load any data
from this location", which is just fine. But, at this point:

$ ps -aux | grep pyth
mario   4241   0.0  0.3    36360   1344 std  S     6:36PM   0:00.05
python /Library/Frameworks/Python.framework/Versions/2.4/bin/qp -s
proto start
mario   4242   0.0  0.5    36360   2760 std  S     6:36PM   0:00.19
python /Library/Frameworks/Python.framework/Versions/2.4/bin/qp -s
proto start
mario   4248   0.0  0.0    18644     92 std  R+    6:42PM   0:00.00
grep pyth
$

And, if I now go back and try to view again:
http://localhost:8002/database/
it gives a broken pipe error... that is also fine (after realising that
durus server is not running anymore).

If I attempt to view a "new" url, I guess forcing a request on the db,
e.g: http://localhost:8002/database/3/
it then goes into what seems to be an infinite loop of attempts,
getting on each attempt:
socket.error: localhost:7002 (61, 'Connection refused')

This on OSX 10.3. Latest durus/qp versions.

mario

reply