thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryan Duxbury <br...@rapleaf.com>
Subject Re: php binary extension hangs
Date Tue, 08 Mar 2011 16:43:19 GMT
The PHP extension is notoriously buggy on versions of Thrift older than the
current TRUNK. I suggest you upgrade.

On Tue, Mar 8, 2011 at 7:24 AM, Dvir Volk <dvirsky@gmail.com> wrote:

> Hi,
> I'm using thrift 0.4.0 on a 64bit ubuntu  box, and switched to the compiled
> php binary extension, compiled on my machine.
> once switched, requests hang for 10-20 seconds before returning, but return
> ok. Is this something I'm doing wrong? a bug that was fixed later on?
> this is my code:
>                $this->_socket = new \TSocket($this->_host, $this->_port +
> $portOffset);
>                $this->_transport = new TBufferedTransport($this->_socket);
>                if (extension_loaded('thrift_protocol')) {
>                    $prot = new
> \TBinaryProtocolAccelerated($this->_transport);
>                } else {
>
>                    $prot = new \TBinaryProtocol($this->_transport);
>                }
>                $this->_client = new ServiceClient($prot);
>                $this->_transport->open()
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message