Jim Davidson wrote:

BTW: Which OS is re-using inodes so quickly? I can't get my Mac OS/X laptop to do that -- figured the inode re-use/prediction thing was plugged years ago, e.g., when fsirand was introduced for scrambling NFS vnodes.

Linux.  This tcl page:

set fn "/tmp/tmpfile[expr rand()]"
set f [open $fn w]
puts $f [ns_queryget data]
close $f
after 2
ns_returnfile 200 text/plain $fn
ns_unlink $fn

being hit at the same time in 2 windows:
$ while true; do res=`curl -s http://localhost:8000/crap.tcl?data=wxyz`; if [ $res != 'wxyz' ]; then echo $res; break ; fi; echo -n . ; done

$ while true; do res=`curl -s http://localhost:8000/crap.tcl?data=wxyz`; if [ $res != 'wxyz' ]; then echo $res; break ; fi; echo -n . ; done

Will cause one or the other test script to get the error typically withing 5 requests.

-J


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to