why? I want a very large buffer here, and in most cases kMaxBuffer should be enough. However, if packetsize is larger than kMaxBuffer, I need to set the buffer to packetsize.