php - Why does the webserver throttles ajax queries - DDoS? -


i have issue on html5 web app have repetitive data updates via ajax query every 2 seconds. first 2 or 3 go through @ 175ms, after this, slow down 500ms, on. hosting company swears not them. did simple test - see test scripts below. not app test script has same results. question is: is hosting service throttling thinking ddos attack, or there can stop throttling , slowing down ajax queries?

the index file:

<!doctype html> <html> <head> <script src="jquery.min.js"></script> <script> $(document).ready(function(){     $("button").click(function(){         var count = 0;         var my_timer = setinterval(function(){               $.ajax({url: "test.php", success: function(result){                 $("#div1").html(result);             }});             count = count + 1;             if(count == 10) clearinterval(my_timer);         },2000);     }); }); </script> </head> <body> <div id="div1">let jquery ajax change text</div> <br> <button>get external content</button> </body> </html> 

the php file:

<?php     echo date('h:i:s'); ?> 

[solved] after research issue. think have figured out, or @ least found workaround. apparently centos and/or plesk php blocking. way have resolved issue re-image server on opensuse 13.1. os ajax queries seem work should. guess, looks php , or centos software update mechanism has bugs in it. updates seem not work , create issues. won't fix not broken.

thank input commentators made, did point me in right direction.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -