binarycopycode opened a new issue, #2475: URL: https://github.com/apache/brpc/issues/2475
**Describe the bug (描述bug)** 自己写了一个[测试](https://github.com/binarycopycode/brpc_rdma_tcp_perf)rdma和tcp速度差别的小测试,自己测试了128,256,512Mb都没问题。当传输大小为1G的数据时,rdma无任何报错,但是client接收到的attachment().size()是0,而使用tcp传输大小为1G的数据时,则出现报错 ``` W1220 15:39:25.600674 5980 /home/binarycopycode/work/brpc_rdma_tcp_perf/src/brpc/input_messenger.cpp:375] Fail to read from Socket{id=102 fd=9 addr=192.168.182.129:40614:8011} (0x7f0d58026820): Connection reset by peer W1220 15:39:25.600733 5980 /home/binarycopycode/work/brpc_rdma_tcp_perf/src/brpc/socket.cpp:1774] Fail to keep-write into Socket{id=102 fd=9 addr=192.168.182.129:40614:8011} (0x7f0d58026820): Broken pipe ``` **To Reproduce (复现方法)** 按照https://github.com/binarycopycode/brpc_rdma_tcp_perf 编译 测试rdma,注意我的池子大小和brpc的max_body_size都设为了2G,注意修改运行client命令的ip地址 `./server -port=8010 -data_size_mb=1023 -rdma_memory_pool_initial_size_mb=2048 -max_body_size=2147483648` `./client -server=192.168.182.129:8010 -rdma_memory_pool_initial_size_mb=2048 -max_body_size=2147483648` 测试tcp,加上-use_rdma=false即可 `./server -use_rdma=false -port=8011 -data_size_mb=1023 -rdma_memory_pool_initial_size_mb=2048 -max_body_size=2147483648` **Expected behavior (期望行为)** client能正常接收attachment **Versions (各种版本)** OS: CentOS8.5 Compiler: g++ (GCC) 8.5.0 20210514 (Red Hat 8.5.0-4) brpc: protobuf: libprotoc 3.5.0 **Additional context/screenshots (更多上下文/截图)**   -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
