You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@thrift.apache.org by Noam Wolf <no...@gmail.com> on 2009/12/16 07:16:51 UTC
TException: TSocket: timed out reading 4 bytes from...
I suddenly started seeing this exception after I "beefed" up the object I
was passing over the wire. That being said this struct has 8 fields 3 of
which are structs that I just added/defined which use only the primitive
types.
My server implementation is written in java but the client implementation is
in php, so I tried passing a bigger buffer into TBufferedTransport (4096)
but I still get the same error.
Any ideas what I'm doing wrong?
Re: TException: TSocket: timed out reading 4 bytes from...
Posted by Noam Wolf <no...@gmail.com>.
Yup that fixed it, thanks!!!
On Wed, Dec 16, 2009 at 9:39 AM, Jonathan Ellis <jb...@gmail.com> wrote:
> Sounds like the same thing as
> http://issues.apache.org/jira/browse/THRIFT-347, which has a patch
> that several people report fixed the problem.
>
> On Wed, Dec 16, 2009 at 12:16 AM, Noam Wolf <no...@gmail.com> wrote:
> > I suddenly started seeing this exception after I "beefed" up the object I
> > was passing over the wire. That being said this struct has 8 fields 3 of
> > which are structs that I just added/defined which use only the primitive
> > types.
> >
> > My server implementation is written in java but the client implementation
> is
> > in php, so I tried passing a bigger buffer into TBufferedTransport (4096)
> > but I still get the same error.
> >
> > Any ideas what I'm doing wrong?
> >
>
--
Best Regards,
Noam Wolf
Re: TException: TSocket: timed out reading 4 bytes from...
Posted by Jonathan Ellis <jb...@gmail.com>.
Sounds like the same thing as
http://issues.apache.org/jira/browse/THRIFT-347, which has a patch
that several people report fixed the problem.
On Wed, Dec 16, 2009 at 12:16 AM, Noam Wolf <no...@gmail.com> wrote:
> I suddenly started seeing this exception after I "beefed" up the object I
> was passing over the wire. That being said this struct has 8 fields 3 of
> which are structs that I just added/defined which use only the primitive
> types.
>
> My server implementation is written in java but the client implementation is
> in php, so I tried passing a bigger buffer into TBufferedTransport (4096)
> but I still get the same error.
>
> Any ideas what I'm doing wrong?
>
Re: TException: TSocket: timed out reading 4 bytes from...
Posted by Phillip B Oldham <ph...@gmail.com>.
It's a PHP issue. Try increasing the timeout in the client; worked for me.
On Wed, Dec 16, 2009 at 6:36 AM, Noam Wolf <no...@gmail.com> wrote:
> So I've narrowed my problem down to using apache's HttpClient on the server
> twice (tried a new instance and an existing one). Once I try to do an
> additional http GET or POST I get the error from before. Is this a
> networking issue? Is this even thrift related?
>
> On Wed, Dec 16, 2009 at 1:16 AM, Noam Wolf <no...@gmail.com> wrote:
>
>> I suddenly started seeing this exception after I "beefed" up the object I
>> was passing over the wire. That being said this struct has 8 fields 3 of
>> which are structs that I just added/defined which use only the primitive
>> types.
>>
>> My server implementation is written in java but the client implementation
>> is in php, so I tried passing a bigger buffer into TBufferedTransport (4096)
>> but I still get the same error.
>>
>> Any ideas what I'm doing wrong?
>>
>
>
>
> --
> Best Regards,
> Noam Wolf
>
--
Phillip B Oldham
phillip.oldham@gmail.com
+44 (0) 7525 01 09 01
Re: TException: TSocket: timed out reading 4 bytes from...
Posted by Noam Wolf <no...@gmail.com>.
So I've narrowed my problem down to using apache's HttpClient on the server
twice (tried a new instance and an existing one). Once I try to do an
additional http GET or POST I get the error from before. Is this a
networking issue? Is this even thrift related?
On Wed, Dec 16, 2009 at 1:16 AM, Noam Wolf <no...@gmail.com> wrote:
> I suddenly started seeing this exception after I "beefed" up the object I
> was passing over the wire. That being said this struct has 8 fields 3 of
> which are structs that I just added/defined which use only the primitive
> types.
>
> My server implementation is written in java but the client implementation
> is in php, so I tried passing a bigger buffer into TBufferedTransport (4096)
> but I still get the same error.
>
> Any ideas what I'm doing wrong?
>
--
Best Regards,
Noam Wolf