fix send_buf overflow in MockTcpConnection