| 137 | } |
| 138 | |
| 139 | void SendStreamRst(Socket *sock, int64_t remote_stream_id) { |
| 140 | CHECK(sock != NULL); |
| 141 | StreamFrameMeta fm; |
| 142 | fm.set_stream_id(remote_stream_id); |
| 143 | fm.set_frame_type(FRAME_TYPE_RST); |
| 144 | butil::IOBuf out; |
| 145 | PackStreamMessage(&out, fm, NULL); |
| 146 | Socket::WriteOptions wopt; |
| 147 | wopt.ignore_eovercrowded = true; |
| 148 | sock->Write(&out, &wopt); |
| 149 | } |
| 150 | |
| 151 | void SendStreamClose(Socket *sock, int64_t remote_stream_id, |
| 152 | int64_t source_stream_id) { |