[ https://issues.apache.org/jira/browse/THRIFT-826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nicholas Telford resolved THRIFT-826. ------------------------------------- Resolution: Duplicate Fix Version/s: 0.7 I believe this has been addressed in #867, and to an extent in #638. Marking as a duplicate since I'm pretty sure those tickets cover this issue appropriately. #638 re-wrote all the TSocket read/write code so if you're still experiencing problems post-0.7, can you open a new ticket? > PHP TSocket Write Timeout > ------------------------- > > Key: THRIFT-826 > URL: https://issues.apache.org/jira/browse/THRIFT-826 > Project: Thrift > Issue Type: Bug > Components: PHP - Library > Affects Versions: 0.2 > Environment: Fedora 8, 64bit, php 5.2.4 > Reporter: Loreto Parisi > Assignee: Nicholas Telford > Fix For: 0.7 > > > 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 -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira