Record of some of the computer tech I deal with so that it's documented at least somewhere.

Monday 20 August 2007

IXP usage begins

http://rod/ixp/viewer.php?address=tcp%21sources.cs.bell-labs.com%21564

changing the form to POST works also

http://rod/ixp/viewer.php?address=tcp%21sources.cs.bell-labs.com%21564&path=%2F%2Fcontrib&type=d

doesn't get the full listing
2007-08-20 17:36:21: (mod_fastcgi.c.2396) unexpected end-of-file (perhaps the fastcgi process died): pid: 9921 socket: unix:/tmp/php.socket-3
2007-08-20 17:36:21: (mod_fastcgi.c.3196) response already sent out, but backend returned error on socket: unix:/tmp/php.socket-3 for /ixp/viewer.php , terminating connection


http://rod/ixp/viewer.php?address=tcp%21sources.cs.bell-labs.com%21564&path=%2F%2Fcontrib%2Fmaht&type=d
gets you a 500 Internal Server Error
2007-08-20 17:34:51: (mod_fastcgi.c.2396) unexpected end-of-file (perhaps the fastcgi process died): pid: 9921 socket: unix:/tmp/php.socket-3


http://rod/ixp/viewer.php?address=tcp%21sources.cs.bell-labs.com%21564&path=%2F%2Fadm&type=d
this one works

http://rod/ixp/viewer.php?address=tcp%21sources.cs.bell-labs.com%21564&path=%2F%2Fadm%2Fusers&type=-
Fatal error: Call to undefined function sys_get_temp_dir() in /home/maht/web9/php9p/examples/viewer.php on line 89
Gotcha! version problem
http://www.php.net/manual/en/function.sys-get-temp-dir.php

with that fixed
http://rod/ixp/viewer.php?address=tcp%21sources.cs.bell-labs.com%21564&path=%2F%2Fadm%2Fusers&type=-
worked just fine I think
zzzmookio:zzzmookio::
~llama:~llama::
are the last usernames returned, they look like the EOF


So, in summary, ixp works mostly but needs some bugs working through

$type = `file -i $nam`;

that's not a very friendly nugget to have in your examples

time to upload a file called '`rm -rf ~`' to /contrib/maht

The examples only use idempotent read operations. So I went straight for the jugular and searched the code for wstat.

Lo and behold : /* Still to be implemented: wstat, auth */

Write operations are going to have to wait testing, hopefully I can get Anant to write the tests.


1 comment:

Anonymous said...

Yep, lot's of bugs :D

Actually, I'm having trouble running viewer.php on apache. I've experienced segfaults under certain cases - you seem to be having better luck with lighttpd.

Curiously, ixpc.php (the CLI equivalent for viewer.php) seems to be working more reliably - which is why I've been trying to find out how I can debug processes that apache spawns. Looking at the apache error logs: `child process died (0)` doesn't help a lot :)