Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-4354

TSocket block on read

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.3, 0.10.0
    • 0.12.0
    • PHP - Library
    • None
    • php7.0 + macOS

    Description

      When \Thrift\Transport\TSocket::read is called, it will block until receive $len byte(TSocket.php#L273-L276)

      But, sometimes, other call TSocket::read with large length,
      such as TBufferedTransport:

          if (TStringFuncFactory::create()->strlen($this->rBuf_) === 0) {
            $this->rBuf_ = $this->transport_->read($this->rBufSize_);
          }
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jking3 James E. King III
            Robert Lu Robert Lu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment