title: sphinxsearch returns "failed to send client protocol version"
body: <p>On some of my servers, doing a sphinx php query returns that error. Searching google I can't find anything except this is part of why the error came out:</p>
  
  <pre><code>// send my version
      // this is a subtle part. we must do it before (!) reading back from searchd.
      // because otherwise under some conditions (reported on FreeBSD for instance)
      // TCP stack could throttle write-write-read pattern because of Nagle.
      if (!$this-&gt;Send($fp, pack('N', 1), 4))
      {
        fclose($fp);
        $this-&gt;error = 'failed to send client protocol version';
        return false;
      }
  </code></pre>
  
  <p>The close I've found is this <a href="http://www.sphinxsearch.com/forum/view.html?id=4919" rel="noreferrer">http://www.sphinxsearch.com/forum/view.html?id=4919</a></p>
  
  <p>But I do not know where the sphinxapi.php is (I installed using manual compile) and not sure if that's a good idea.</p>
  
  <p>Anyone has any idea?</p>