Use ResetStream() instead of CloseStream() in QUIC transport.
CloseStream() will be deprecated. The reason is that this method is not closing the stream silently. QUIC specifies that when a stream closes, it needs to send out a RESET_STREAM frame to indicate closure reason. The default error code in CloseStream() is QUIC_RST_ACKNOWLEDGEMENT, which is very uninformative. ResetStream(), however, allows applications to specify reasons of closure. Change-Id: Ie0633422ab3838abcaa7c31c4068db32ae11932a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2292857Reviewed-by:Yutaka Hirano <yhirano@chromium.org> Commit-Queue: Renjie Tang <renjietang@chromium.org> Cr-Commit-Position: refs/heads/master@{#787833}
Showing
Please register or sign in to comment