国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

使用thrift rpc框架,在Handler文件中連接mysql就報(bào)錯(cuò)

throo8

我使用workerman Thrift Rpc框架,在Handler文件中實(shí)現(xiàn)接口方法的時(shí)候,想連mysql查詢一下數(shù)據(jù)的時(shí)候報(bào)下面錯(cuò),如果不連接mysql就沒有問題,不知道為什么

PHP Fatal error:  Uncaught exception 'Thrift\Exception\TTransportException' with message 'TSocket read 0 bytes' in \workerman-thrift-master\Applications\ThriftRpc\Lib\Thrift\Transport\TSocket.php:269
Stack trace:
#0 \workerman-thrift-master\Applications\ThriftRpc\Lib\Thrift\Transport\TTransport.php(74): Thrift\Transport\TSocket->read(4)
#1 \rpcdemo\workerman-thrift-master\Applications\ThriftRpc\Lib\Thrift\Transport\TBufferedTransport.php(113): Thrift\Transport\TTransport->readAll(4)
#2 \workerman-thrift-master\Applications\ThriftRpc\Lib\Thrift\Protocol\TBinaryProtocol.php(306): Thrift\Transport\TBufferedTransport->readAll(4)
#3 \workerman-thrift-master\Applications\ThriftRpc\Lib\Thrift\Protocol\TBinaryProtocol.php(197): Thrift\Protocol\TBinaryProtocol->readI32(NULL)
#4 \workerman-thrift-master\Applications\ThriftRpc\Services\Account\Account.php(92): Thrift\Protocol\TBinaryProtocol->readMessage in D:\AcmCoder\user\rpcdemo\workerman-thrift-master\Applications\ThriftRpc\Lib\Thrift\Transport\TSocket.php on line 269

代碼就是很簡(jiǎn)單的一句連一下mysql
$mysqli = new mysqli($dbhost,$dbuser,$dbpass,$dbname);

7139 1 0
1個(gè)回答

walkor 打賞

數(shù)據(jù)庫太慢,超時(shí)了

  • throo8 2016-03-03

    請(qǐng)問這個(gè)超時(shí)時(shí)間能設(shè)長(zhǎng)點(diǎn)兒?jiǎn)??是修改TSocket.php文件中的那幾個(gè)參數(shù)就可以了嗎?

年代過于久遠(yuǎn),無法發(fā)表回答
??