wwbmmm commented on code in PR #2210:
URL: https://github.com/apache/brpc/pull/2210#discussion_r1168126757


##########
src/brpc/details/http_message.h:
##########
@@ -82,6 +82,10 @@ class HttpMessage {
 
     bool read_body_progressively() const { return _read_body_progressively; }
 
+    void set_read_progressively(bool read_body_progressively) {

Review Comment:
   set_read_body_progressively



##########
src/brpc/policy/http_rpc_protocol.cpp:
##########
@@ -1545,6 +1549,26 @@ void ProcessHttpRequest(InputMessageBase *msg) {
     } else {
         // A http server, just keep content as it is.
         cntl->request_attachment().swap(req_body);
+        if (imsg_guard->read_body_progressively()) {
+            accessor.set_readable_progressive_attachment(imsg_guard.get());
+            const int sc = req_header.status_code();

Review Comment:
   request header has status_code?



-- 
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]

Reply via email to