I ran into a problem using php built into the web server as it apparently only allows one simultaneous connection.
I found this when testing some concurrent ajax requests that all seemed to complete at the same time.
This is not very important, since I can always run apache (this is how I came to the conclusion above), but I'm used to running php directly from my IDE.
Is there a way to increase this, or is this a php restriction?
my sample code that is blocked by the embedded 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);
Steve source share