summaryrefslogtreecommitdiff
path: root/sapi
diff options
context:
space:
mode:
authorShane Caraveo <shane@php.net>2001-01-08 00:10:06 +0000
committerShane Caraveo <shane@php.net>2001-01-08 00:10:06 +0000
commit0a1d3aa1087b9760c7f7cc5fdaedfcaf9fd03582 (patch)
tree22e8e50cc80b4c5731ab9cc0e8882cda867cf221 /sapi
parenta1c3f92ac7bc67a2be327d0c0e0d096e8022ea8e (diff)
downloadphp-git-0a1d3aa1087b9760c7f7cc5fdaedfcaf9fd03582.tar.gz
add notes on this program
Diffstat (limited to 'sapi')
-rw-r--r--sapi/isapi/stresstest/notes.txt18
-rw-r--r--sapi/isapi/stresstest/stresstest.cpp2
2 files changed, 19 insertions, 1 deletions
diff --git a/sapi/isapi/stresstest/notes.txt b/sapi/isapi/stresstest/notes.txt
new file mode 100644
index 0000000000..e6388a060f
--- /dev/null
+++ b/sapi/isapi/stresstest/notes.txt
@@ -0,0 +1,18 @@
+This stress test program is for debugging threading issues with the isapi module.
+
+Create a file that contains a list of php script files, one per line. If you need to provide input, you can create an input file for each script file. File contents would look like:
+
+e:\inetpub\pages\index.php
+e:\inetpub\pages\info.php
+e:\inetpub\pages\posttest.php e:\inetpub\pages\postdata.txt
+
+If you need to set special environement variables, in addition to your regular environment, create a file that contains them, one setting per line:
+
+MY_ENV_VAR=XXXXXXXX
+
+This can be used to simulate isapi environment variables if need be.
+
+By default, stress test uses 10 threads. To change this, change the define NUM_THREADS in stresstest.cpp.
+
+This test program is a work in progress, no garauntees on it working right.
+
diff --git a/sapi/isapi/stresstest/stresstest.cpp b/sapi/isapi/stresstest/stresstest.cpp
index dad651e62e..b9da772420 100644
--- a/sapi/isapi/stresstest/stresstest.cpp
+++ b/sapi/isapi/stresstest/stresstest.cpp
@@ -57,7 +57,7 @@ char * MakeDateStr(VOID);
char * GetEnv(char *);
-#define NUM_THREADS 1
+#define NUM_THREADS 10
#define ITERATIONS 1
HANDLE terminate[NUM_THREADS];
HANDLE StartNow;