...#L404 (显示) protected function read($len){ // quick return for zero size if ($len == 0) { return ''; } // loop to send data $this->check(); for ($buf = '', $size = $len;;) { $bytes = fread($this->_sock, $len); if ($bytes === false || strlen($bytes) == 0) { ...
..., num_task:1083121(299.0/s), sock:7, name:"demo", home:"data/demo", rcv_size:8, flag:0x0000, version:"1.4.5-dev" } ---------- SERVER INFO BEGIN ---------- { id:"worker1", uptime:157312, num_burst:0, max_burst:56, num_accept:436479, aps:2.8, num_task:1213522, tps:7.7, sock:7, name...
..... inline checking for off_t... yes checking for pid_t... yes checking for size_t... yes checking size of off_t... 8 checking for error_at_line... yes checking vfork.h usability... no checking vfork.h presence... no checking for vfork.h... no checking for fork... yes checking for vfork... yes checki...
... pack('II', $this->_offset, $this->_limit > 0 ? $this->_limit : self::PAGE_SIZE); // get result header $cmd = new XSCommand(XS_CMD_SEARCH_GET_RESULT, 0, $this->_defaultOp, $query, $page); $res = $this->execCommand($cmd, XS_CMD_OK_RESULT_BEGIN); $tmp = unpack('Icount', $res->buf); $thi...
...NYMS, XS_CMD_INDEX_SYNONYMS_ADD, 0, $raw, $synonym); if ($this->_bufSize > 0) { $this->appendBuffer(strval($cmd)); } else { $this->execCommand($cmd, XS_CMD_OK_RQST_FINISHED); } } return $this;} 添加同义词 beginRebuild() 方法 publi...
...url](输入一段文字系统自动给出最合适的分类建议) [size=x-large]-- [color=#DAA520]新增或变动的 API [/color]--[/size] 1. [libscws] scws_set_dict(scws_t s, const char *fpath, int mode); scws_add_dict(scws_t s, const char *fpath, int mode); scws_set_dict 为原有...