dylanzhang opened a new issue #1610: URL: https://github.com/apache/incubator-brpc/issues/1610
**Describe the bug (描述bug)** 在brpc server中返回204时,body不为空,不符合http规范,容易导致相关客户端断连接,引起平响开销和大量占用TIME_WAIT **To Reproduce (复现方法)** 在example/echo_c++的server.cpp第60行,添加 cntl->http_response().set_status_code(brpc::HTTP_STATUS_NO_CONTENT); 以期望返回结果为204  结果确实是返回204了,但在抓包中发现,body是有内容的,不符合204的规范要求,导致相关服务会关闭长连接,抓包结果如下  **Expected behavior (期望行为)** 在返回204时,body应该为空,想请教一下,这个问题怎么修复呢? **Versions (各种版本)** OS:Ubuntu 18.04 Compiler: gcc 7.5 brpc: v0.9.7 protobuf: 3 **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: 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