prevent client from hanging at end of tests
The client can appear to hang at the end of the tests and the PHP server can hold open the uploading connections longer than desired. This condition will usually happen on poor connections, it does not happen on good high bandwidth low latency connections.
This commit is contained in:
parent
cfd0eb0145
commit
b47f86696e
|
@ -1,4 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
set_time_limit (15); // prevent PHP from leaving sockets open with client
|
||||||
header( "HTTP/1.1 200 OK" );
|
header( "HTTP/1.1 200 OK" );
|
||||||
if(isset($_GET["cors"])){
|
if(isset($_GET["cors"])){
|
||||||
header('Access-Control-Allow-Origin: *');
|
header('Access-Control-Allow-Origin: *');
|
||||||
|
|
Loading…
Reference in a new issue