I have encountered a problem using php's built in webserver, in that it appears to only allow a single concurrent connection.
I discovered this when testing some concurrent ajax requests which all appeared to complete at the same time.
This isnt a big deal, as i can always fire up apache (which is how i came to above conclusion), but i have gotten used to running php directly from my IDE.
Is there any way to increase this, or is it a php limitation?
my example code that blocks with the inbuilt server but works fine on apache:
$.ajax({
type: "POST",
url: slow.php,
data: "",
success: function(data){
clearInterval(checkid);
console.log('slow call finished');
}
});
checkid = setInterval(function(){
$.get('somefile.txt', function(data){
console.log('quick call finished');
});
},1000);
//slow.php
sleep(10);
echo 'all done';