title: firebaseio.com refusing connections after many requests
body: <p>I use PHP CURL for making changes to the Firebase database. After many curl requests, suddenly, Failed to connect to something.firebaseio.com port 443: Connection refused error occours. After few hours, it starts working again.</p>
  
  <p>Following is the curl script in php</p>
  
  <pre><code> $url = 'https://something.firebaseio.com/iochatting/roomchats/data.json?auth=private_key';
   $json = json_encode($msg);
   $headers = array();
   $headers[] = 'Content-Type: application/json';
   $ch = curl_init();
   curl_setopt($ch, CURLOPT_URL, $url);
   curl_setopt($ch, CURLOPT_CUSTOMREQUEST,"POST");
   curl_setopt($ch, CURLOPT_POSTFIELDS, $json);
   curl_setopt($ch, CURLOPT_HTTPHEADER,$headers);
   curl_setopt($ch, CURLOPT_RETURNTRANSFER, false);
   curl_setopt($ch, CURLOPT_VERBOSE, true);
   curl_setopt($ch, CURLOPT_TIMEOUT, 20500);
   $response = curl_exec($ch);
   if ($response === FALSE) {
   }
   curl_close($ch);
  </code></pre>
  
  <p>This code works fine most of the time but suddenly all connection requests are rejected. </p>
  
  <p>Also, i have tried <a href="https://github.com/kreait/firebase-php" rel="nofollow noreferrer">https://github.com/kreait/firebase-php</a> , this too stops suddenly. </p>
  
  <p>I want the curl to work not the php-sdk. Is there anyway ? Is google refusing server request ?</p>
  
  <p>When the connections are rejected when sending request normally, if i use proxy in of port 443. It works again for few times.</p>