You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/03/06 14:55:00 UTC
[jira] [Commented] (THRIFT-4354) TSocket block on read
[ https://issues.apache.org/jira/browse/THRIFT-4354?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16387895#comment-16387895 ]
ASF GitHub Bot commented on THRIFT-4354:
----------------------------------------
Github user asfgit closed the pull request at:
https://github.com/apache/thrift/pull/1384
> TSocket block on read
> ---------------------
>
> Key: THRIFT-4354
> URL: https://issues.apache.org/jira/browse/THRIFT-4354
> Project: Thrift
> Issue Type: Bug
> Components: PHP - Library
> Affects Versions: 0.9.3, 0.10.0
> Environment: php7.0 + macOS
> Reporter: Robert Lu
> Assignee: James E. King, III
> Priority: Major
> Fix For: 0.12.0
>
>
> When \Thrift\Transport\TSocket::read is called, it will block until receive $len byte([TSocket.php#L273-L276|https://github.com/apache/thrift/blob/master/lib/php/lib/Thrift/Transport/TSocket.php#L273-L276])
> But, sometimes, other call TSocket::read with large length,
> such as [TBufferedTransport|https://github.com/apache/thrift/blob/39310dad793ca69b4b7217a3b54430e682e5e2a4/lib/php/lib/Thrift/Transport/TBufferedTransport.php#L136-L138]:
> {code}
> if (TStringFuncFactory::create()->strlen($this->rBuf_) === 0) {
> $this->rBuf_ = $this->transport_->read($this->rBufSize_);
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)