Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 0.2
    • Fix Version/s: 0.7
    • Component/s: PHP - Library
    • Labels:
      None
    • Environment:

      Fedora 8, 64bit, php 5.2.4

      Description

      TException: TSocket: Could not write 48 bytes localhost:9160

      The error comes out often from TSocket#write($buf), row 279 at line 292:

      while (strlen($buf) > 0) {
      $got = @fwrite($this->handle_, $buf);
      if ($got === 0 || $got === FALSE) {
      $md = stream_get_meta_data($this->handle_);
      if ($md['timed_out'])

      { throw new TException('TSocket: timed out writing '.strlen($buf).' bytes from '. $this->host_.':'.$this->port_); }

      else

      { // HERE throw new TException('TSocket: Could not write '.strlen($buf).' bytes '. $this->host_.':'.$this->port_); }

      }
      $buf = substr($buf, $got);
      }

      I found a similar issue in reading TSocket, described here: https://issues.apache.org/jira/browse/THRIFT-347

        Activity

        Jake Farrell made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Nicholas Telford made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 0.7 [ 12315360 ]
        Resolution Duplicate [ 3 ]
        Nicholas Telford made changes -
        Assignee Nicholas Telford [ nicktelford ]
        Bryan Duxbury made changes -
        Fix Version/s 0.6 [ 12315359 ]
        Bryan Duxbury made changes -
        Fix Version/s 0.6 [ 12315359 ]
        Fix Version/s 0.5 [ 12315235 ]
        Bryan Duxbury made changes -
        Fix Version/s 0.5 [ 12315235 ]
        Fix Version/s 0.4 [ 12314960 ]
        Bryan Duxbury made changes -
        Field Original Value New Value
        Fix Version/s 0.4 [ 12314960 ]
        Fix Version/s 0.2 [ 12313769 ]
        Loreto Parisi created issue -

          People

          • Assignee:
            Nicholas Telford
            Reporter:
            Loreto Parisi
          • Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development