Dynamically allocate send/receive buffer sizes