title: ByteBuf initial capacity size
body: <p>Please give me advice how to increase my ByteBuf initial capacity.<br> In situation like:</p>
  
  <pre><code> @Override
  protected void decode(ChannelHandlerContext ctx, ByteBuf in, List&lt;Object&gt; out) throws  Exception {
  
      byte[] byteinput = new byte[in.readableBytes()]; 
      in.readBytes(byteinput);  
  
  //further handling...
  }
  </code></pre>
  
  <p>If income message more than max capacity of ByteBuf - i get cutted data. Its vital for this project to get whole, non chunked message.</p>
  
  <p>I suppose i need to set initial capacity of ByteBuf somewhere in bootstraps childOptions, or in cannel.config()... inside of ChannelInitializer.<br>
  And i tried different ways like setting</p>
  
  <pre><code>ch.config().setReceiveBufferSize(1024)
  </code></pre>
  
  <p>but i still have same value of ByteBuf capacity(e.g. 496).</p>
  
  <p><strong>UPD</strong></p>
  
  <p>I discovered my protocol traffic with wireshark, and packets up to 1,4k going uncorrupted out and in from my test user client. This issue is only matter of netty settings. Operating system socket buffer do not cuts messages.</p>