Cleanup write path, fix some bugs#12856
Conversation
|
1 similar comment
|
|
|
|
|
|
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored by someone other than the pull request submitter. We need to confirm that they're okay with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
|
|
|
|
|
|
|
|
|
|
|
|
1 similar comment
|
|
|
ncteisen
left a comment
There was a problem hiding this comment.
Small comments. LGTM otherwise, great re-write. It is a lot clearer to understand what's going on
| WriteContext *const write_context_; | ||
| grpc_chttp2_transport *const t_; | ||
| grpc_chttp2_stream *const s_; | ||
| bool sent_initial_metadata_; |
There was a problem hiding this comment.
Can we just use s_->sent_initial_metadata?
There was a problem hiding this comment.
Good idea! More cleanup!
| } | ||
| } | ||
|
|
||
| bool WasLastFrame() const { return is_last_frame_; } |
| s_(s), | ||
| sending_bytes_before_(s_->sending_bytes) {} | ||
|
|
||
| uint32_t stream_remote_window() const { |
There was a problem hiding this comment.
Tiny nit; why are stream_remote_window and max_outgoing snake case, but the rest of the new C++ camel?
There was a problem hiding this comment.
accessors and setters get snake_case, methods get CamelCase (see the final paragraph).
|
|
|
|
The bm_diff output looks a little too good: I want to peek further and ensure this is right before submitting |
|
|
|
Failures seem to be existing things, and this fixes some P0's |
|
Intended to fix: #12510 #12428 #11737