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 <[email protected]> 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()
>

Reply via email to