title: http\Client->enqueue(http\Client\Request)->send() resets connection to the server PHP
body: <p>I've just installed the module pecl_http 2.5.1 on my server, and I am attempting to send a get request to a different port of my site (which requires https) from the following php script:</p>
  
  <pre><code>if(!isset($_POST['user']) || !isset($_POST['pass']) || $_POST['user']=="" || $_POST['pass']=="")
  {   
      header("Location:https://MY_IP:444/");
      exit;
  }
  
  require_once("contants.php");
  //Usar información de Login contra el servicio REST
  $request = new http\Client\Request("GET", SERVICE_URL."/login", ["Auth" =&gt; $_POST['user'].":".$_POST['pass']]);
  $request-&gt;setOptions(["timeout"=&gt;1]);
  $client = new http\Client;
  $client-&gt;enqueue($request)-&gt;send();
  //$response=$client-&gt;getResponse();
  //echo $response-&gt;getResponseCode();
  </code></pre>
  
  <p>Both user connection to this port and server connection to the port I am trying to contact via SERVICE_URL require https. But when I attempt to send the form to this page, my browser outputs a "Reset Connection" error, and refuses to go on as it supposes it is unsafe.</p>
  
  <p>Why is this happening? Can PHP not keep more than one socket open and thus it has to close one to open the other one? How can I fix this?</p>