Ok. And what is the default value for client and server ? On 19-Jul-2013 12:25 AM, "Ben Craig" <[email protected]> wrote:
> TNoblockingServer is its own special case. It looks like you can set the > maximum frame size with setMaxFrameSize(), but you can't set an initial > size for your read buffer. You can change the initial size of the write > buffer with setWriteBufferDefaultSize(). > > > > From: Vivek Goel <[email protected]> > To: [email protected], > Date: 07/18/2013 01:03 PM > Subject: Re: How to increase thrift_framed_transport_size_in_mb? > > > > In TNonblockingServer.h size is defined as > static const int MAX_FRAME_SIZE = 256 * 1024 * 1024; > Does it mean server will be having MAX frame size of 256 MB by default ? > Does same rule apply for client ? > > > regards > Vivek Goel > > > On Thu, Jul 18, 2013 at 11:13 PM, Ben Craig <[email protected]> wrote: > > > I didn't find any identifier named thrift_framed_transport_size_in_mb, > but > > you can change the initial size of the buffer in TFramedTransport. One > of > > the constructors has the following signature: > > > > TFramedTransport(boost::shared_ptr<TTransport> transport, uint32_t > sz). > > > > If you need to adjust the size that comes through a transport factory, > > then you will need code similar to the following: > > > > > > class TFramedTransportFactory : public TTransportFactory { > > public: > > virtual boost::shared_ptr<TTransport> > > getTransport(boost::shared_ptr<TTransport> trans) { > > return boost::shared_ptr<TTransport>(new TFramedTransport(trans), > > MY_CUSTOM_SIZE); > > } > > }; > > > > > > > > > > From: Vivek Goel <[email protected]> > > To: [email protected], > > Date: 07/18/2013 12:36 PM > > Subject: How to increase thrift_framed_transport_size_in_mb? > > > > > > > > I want to increase thrift_framed_transport_size_in_mb. I am using C++ at > > both server and client. How can I increase that value ? > > > > regards > > Vivek Goel > > > > > >
