diff -r 0f2942bd6c2c -r 3deee93e7c20 src/mod_uploadprogress.c --- a/src/mod_uploadprogress.c Fri Dec 19 01:26:54 2008 +0300 +++ b/src/mod_uploadprogress.c Wed Dec 24 15:47:14 2008 +0300 @@ -477,6 +477,11 @@ return HANDLER_FINISHED; } + if (post_con_entry->con == con) { + TRACE("post_con_entry->con: %d, con: %d", post_con_entry->con, con); + exit(1); + } + buffer_copy_string_len(b, CONST_STR_LEN("new Object({ 'state' : ")); if (post_con_entry->status == 413) { diff -r 0f2942bd6c2c -r 3deee93e7c20 testing/get.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/testing/get.py Wed Dec 24 15:47:14 2008 +0300 @@ -0,0 +1,36 @@ +#!/usr/bin/python + +import sys +import httplib +import time + +print sys.argv + +host = '127.0.0.1:10103' +#uuid = sys.argv[1] +uuid_list = ('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa', 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb') +k = 0 + +while (1 == 1): + uuid = uuid_list[k] + print uuid + h = httplib.HTTP(host) + h.putrequest('GET', '/progress'); + h.putheader('X-ProgRess-ID', uuid) + h.endheaders() + + returncode, returnmsg, headers = h.getreply() + +# print "returncode = "+ str(returncode) +# print returnmsg +# print headers + + print time.localtime() + + if returncode == 200: + f = h.getfile() + print f.read() + print "_____" + + time.sleep(1) + k = 1-k diff -r 0f2942bd6c2c -r 3deee93e7c20 testing/l.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/testing/l.conf Wed Dec 24 15:47:14 2008 +0300 @@ -0,0 +1,42 @@ +server.document-root = "/home/ayvlasov/up_assert/ayvlasov/temp/www" +server.upload-dirs = ("/home/ayvlasov/up_assert/ayvlasov/temp/www/tmp") +#server.network-backend = "write" +#server.errorlog = "/home/ayvlasov/upfail/throughput/temp/test_reset_and_close.log" + +server.port = 10103 + +server.modules = ( + "mod_access", + "mod_accesslog", + "mod_cgi", + "mod_uploadprogress", +) + + +upload-progress.progress-url = "/progress" +upload-progress.debug = "enable" +upload-progress.remove-timeout = 4 + +#post_to_disk.tmp-dir = "/home/ayvlasov/upfail/throughput/temp/www/tmp" +#post_to_disk.done-dir = "/home/ayvlasov/upfail/throughput/temp/www/done" +#post_to_disk.failed-dir = "/home/ayvlasov/upfail/throughput/temp/www/failed" +#post_to_disk.response-content = "application-xml" + +index-file.names = ("index.html", "index.py", "index.htm", "default.htm") + +static-file.exclude-extensions = (".php", ".py", ".fcgi") + +cgi.assign = (".py" => "/usr/bin/python", ".cgi" => "/usr/bin/python") #, ".php" => "/usr/bin/php-cgi") + +debug.log-request-header = "enable" +debug.log-response-header = "enable" +debug.log-request-handling = "enable" +#debug.log-state-handling = "enable" +debug.log-file-not-found = "enable" + +mimetype.assign = ( + ".html" => "text/html", + ".txt" => "text/plain", + ".jpg" => "image/jpeg", + ".png" => "image/png" +) diff -r 0f2942bd6c2c -r 3deee93e7c20 testing/up.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/testing/up.html Wed Dec 24 15:47:14 2008 +0300 @@ -0,0 +1,161 @@ + + + + /dev/null + + + +
+ + +
+ +
+
+
+   +
+
+
(throughput)
+
+ + diff -r 0f2942bd6c2c -r 3deee93e7c20 testing/upb.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/testing/upb.html Wed Dec 24 15:47:14 2008 +0300 @@ -0,0 +1,161 @@ + + + + /dev/null + + + +
+ + +
+ +
+
+
+   +
+
+
(throughput)
+
+ +