PHP notice

fwrite(): send of 212 bytes failed with errno=32 Broken pipe

/www/godata.hk/protected/extensions/Sphinx.php(501)

489     }
490 
491     /// set server connection timeout (0 to remove)
492     function SetConnectTimeout ( $timeout )
493     {
494         assert ( is_numeric($timeout) );
495         $this->_timeout = $timeout;
496     }
497 
498 
499     function _Send ( $handle, $data, $length )
500     {
501         if ( feof($handle) || fwrite ( $handle, $data, $length ) !== $length )
502         {
503             $this->_error = 'connection unexpectedly closed (timed out?)';
504             $this->_connerror = true;
505             return false;
506         }
507         return true;
508     }
509 
510     /////////////////////////////////////////////////////////////////////////////
511 
512     /// enter mbstring workaround mode
513     function _MBPush ()

Stack Trace

#0
+
 /www/godata.hk/protected/extensions/Sphinx.php(501): fwrite()
496     }
497 
498 
499     function _Send ( $handle, $data, $length )
500     {
501         if ( feof($handle) || fwrite ( $handle, $data, $length ) !== $length )
502         {
503             $this->_error = 'connection unexpectedly closed (timed out?)';
504             $this->_connerror = true;
505             return false;
506         }
#1
+
 /www/godata.hk/protected/extensions/Sphinx.php(1079): Sphinx->_Send()
1074         $nreqs = count($this->_reqs);
1075         $req = join ( "", $this->_reqs );
1076         $len = 4+strlen($req);
1077         $req = pack ( "nnNN", SEARCHD_COMMAND_SEARCH, VER_COMMAND_SEARCH, $len, $nreqs ) . $req; // add header
1078 
1079         if ( !( $this->_Send ( $fp, $req, $len+8 ) ) ||
1080              !( $response = $this->_GetResponse ( $fp, VER_COMMAND_SEARCH ) ) )
1081         {
1082             $this->_MBPop ();
1083             return false;
1084         }
#2
+
 /www/godata.hk/protected/extensions/Sphinx.php(916): Sphinx->RunQueries()
911     function Query ( $query, $index="*", $comment="" )
912     {
913         assert ( empty($this->_reqs) );
914 
915         $this->AddQuery ( $query, $index, $comment );
916         $results = $this->RunQueries ();
917         $this->_reqs = array (); // just in case it failed too early
918 
919         if ( !is_array($results) )
920             return false; // probably network error; error message should be already filled
921 
2024-03-29 05:21:51 nginx/1.10.0 Yii Framework/1.1.14