client/server: Handle NGTCP2_ERR_STREAM_SHUT_WR
@@ -641,7 +641,9 @@ int Client::on_write_stream(uint32_t stream_id, uint8_t fin, Buffer &data) {
stream_id, fin, data.rpos(), data.left(),
util::timestamp());
if (n < 0) {
- if (n == NGTCP2_ERR_STREAM_DATA_BLOCKED) {
+ switch (n) {
+ case NGTCP2_ERR_STREAM_DATA_BLOCKED:
+ case NGTCP2_ERR_STREAM_SHUT_WR:
return 0;
}
std::cerr << "ngtcp2_conn_write_stream: " << ngtcp2_strerror(n)
