THRIFT-95. cpp: Fix write buffer initialization in TBufferedTransport
authorDavid Reiss <dreiss@apache.org>
Thu, 24 Jul 2008 19:10:16 +0000 (19:10 +0000)
committerDavid Reiss <dreiss@apache.org>
Thu, 24 Jul 2008 19:10:16 +0000 (19:10 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@679500 13f79535-47bb-0310-9956-ffa450edef68

lib/cpp/src/transport/TBufferTransports.h

index 3d81a66..ccf4ce3 100644 (file)
@@ -195,7 +195,7 @@ class TBufferedTransport : public TBufferBase {
   TBufferedTransport(boost::shared_ptr<TTransport> transport, uint32_t rsz, uint32_t wsz)
     : transport_(transport)
     , rBufSize_(rsz)
-    , wBufSize_(rsz)
+    , wBufSize_(wsz)
     , rBuf_(new uint8_t[rBufSize_])
     , wBuf_(new uint8_t[wBufSize_])
   {