Browse Source

add 100ms usleep to reduce request frequency

andre 2 weeks ago
parent
commit
a22fffa7fe
1 changed files with 4 additions and 0 deletions
  1. 4 0
      switchepp.php

+ 4 - 0
switchepp.php

@@ -1013,6 +1013,10 @@ function switchepp_AdminDomainsTabFields($params)
 
 function switchepp_Sync($params)
 {
+    /***
+     * [error] => Command failed; server closing connection. Too many requests per second! Timeout ms.: 47107
+     * using usleep to slow down request frequency
+    */
     usleep(100000);
     try {
         $client = switchepp_clientloginepp($params);      #Epp Connection