You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by Bryan Duxbury <br...@rapleaf.com> on 2008/09/03 18:52:35 UTC
TFramedTransport question
In the Java implementation at least, TFramedTransport has optional
read and write framing behavior. Are there really situations where
you want to read framed and write unframed or vice versa? It seems
confusing to me to even have this option.
-Bryan
Re: TFramedTransport question
Posted by Alexander Shigin <sh...@rambler-co.ru>.
В Срд, 03/09/2008 в 09:52 -0700, Bryan Duxbury пишет:
> In the Java implementation at least, TFramedTransport has optional
> read and write framing behavior. Are there really situations where
> you want to read framed and write unframed or vice versa? It seems
> confusing to me to even have this option.
We've got rid of this behavior in C++, look at THRIFT-54.
Re: TFramedTransport question
Posted by David Reiss <dr...@facebook.com>.
I removed this from the C++ version because no one used it and the
performance was terrible (it did no buffering at all). I'm in favor
of removing this option.
--David
Bryan Duxbury wrote:
> In the Java implementation at least, TFramedTransport has optional
> read and write framing behavior. Are there really situations where
> you want to read framed and write unframed or vice versa? It seems
> confusing to me to even have this option.
>
> -Bryan
>
Re: TFramedTransport question
Posted by Bryan Duxbury <br...@rapleaf.com>.
I wrote the THsHaServer in Java, and it frames in both directions.
-Bryan
On Sep 3, 2008, at 11:10 AM, Todd Lipcon wrote:
> On Wed, 3 Sep 2008, Mark Slee wrote:
>
>> Yeah, I can't remember exactly what this was put in. It does seem
>> quite
>> unlikely that you'd want to do this. The only server that really
>> supports doing both is the TNonblockingServer in C++, since it
>> requires
>> framed input.
>
> There's also a THsHaServer in Java now that uses the framed transport.
>
>> I probably wouldn't be opposed to nuking this code for the sake of
>> clarity, but I don't think it hurts too much as long as the default
>> setting is to frame in both directions and users can happily
>> ignore the
>> options altogether.
>
> I'm pretty sure we also implemented this in the Erlang transport -
> maybe Eugene or Chris knows why?
>
> -Todd
RE: TFramedTransport question
Posted by Todd Lipcon <to...@amiestreet.com>.
On Wed, 3 Sep 2008, Mark Slee wrote:
> Yeah, I can't remember exactly what this was put in. It does seem quite
> unlikely that you'd want to do this. The only server that really
> supports doing both is the TNonblockingServer in C++, since it requires
> framed input.
There's also a THsHaServer in Java now that uses the framed transport.
> I probably wouldn't be opposed to nuking this code for the sake of
> clarity, but I don't think it hurts too much as long as the default
> setting is to frame in both directions and users can happily ignore the
> options altogether.
I'm pretty sure we also implemented this in the Erlang transport - maybe
Eugene or Chris knows why?
-Todd
RE: TFramedTransport question
Posted by Mark Slee <ms...@facebook.com>.
Yeah, I can't remember exactly what this was put in. It does seem quite
unlikely that you'd want to do this. The only server that really
supports doing both is the TNonblockingServer in C++, since it requires
framed input.
I probably wouldn't be opposed to nuking this code for the sake of
clarity, but I don't think it hurts too much as long as the default
setting is to frame in both directions and users can happily ignore the
options altogether.
mcslee
-----Original Message-----
From: Bryan Duxbury [mailto:bryan@rapleaf.com]
Sent: Wednesday, September 03, 2008 9:53 AM
To: thrift-dev@incubator.apache.org
Subject: TFramedTransport question
In the Java implementation at least, TFramedTransport has optional read
and write framing behavior. Are there really situations where you want
to read framed and write unframed or vice versa? It seems confusing to
me to even have this option.
-Bryan