page4 commented on issue #1875:
URL: https://github.com/apache/brpc/issues/1875#issuecomment-2437286745

   我重新跑了上面的测试,看上去应该能过了。用 gdb 跟了一下,发现调用了 SendStreamClose。想问一下是哪个 commit 修了吗?
   
   ```
   [ RUN      ] StreamingRpcTest.auto_close_if_receive_too_big_data
   I1025 17:04:21.815020 182870     0 
/home/zj/src/brpc/src/brpc/server.cpp:1212] Server[MyServiceWithStream] is 
serving on port=9007.
   I1025 17:04:21.816590 182870     0 
/home/zj/src/brpc/src/brpc/server.cpp:1215] Check out http://bang:9007 in web 
browser.
   W1025 17:04:21.816755 182870     0 /home/zj/src/brpc/src/brpc/stream.cpp:83] 
options.min_buf_size is larger than options.max_buf_size, it will be set to 0.
   W1025 17:04:21.818237 182874 4294967298 
/home/zj/src/brpc/src/brpc/stream.cpp:83] options.min_buf_size is larger than 
options.max_buf_size, it will be set to 0.
   I1025 17:04:21.818269 182874 4294967298 
/home/zj/src/brpc/test/brpc_streaming_rpc_unittest.cpp:61] Created 
response_stream=8589934595
   E1025 17:04:21.880653 182875 8589935105 
/home/zj/src/brpc/src/brpc/input_messenger.cpp:157] A message from 
127.0.0.1:54338(protocol=streaming_rpc) is bigger than 67108864 bytes, the 
connection will be closed. Set max_body_size to allow bigger messages
   W1025 17:04:21.880685 182875 8589935105 
/home/zj/src/brpc/src/brpc/input_messenger.cpp:253] Close Socket{id=93 fd=10 
addr=127.0.0.1:54338:9007} (0x560bee0b6000): too big data
   W1025 17:04:21.880899 182879 8589936900 
/home/zj/src/brpc/src/brpc/socket.cpp:1826] Fail to keep-write into Socket{id=1 
fd=9 addr=127.0.0.1:9007:54338} (0x560bedd722c0): Connection reset by peer
   /home/zj/src/brpc/test/brpc_streaming_rpc_unittest.cpp:622: Failure
   Value of: handler.failed()
     Actual: true
   Expected: false
   I1025 17:04:21.882303 182870     0 
/home/zj/src/brpc/src/brpc/server.cpp:1272] Server[MyServiceWithStream] is 
going to quit
   [  FAILED  ] StreamingRpcTest.auto_close_if_receive_too_big_data (76 ms)
   [----------] 1 test from StreamingRpcTest (76 ms total)
   ```


-- 
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: dev-unsubscr...@brpc.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to