Remove error handling which does not happen
This commit is contained in:
parent
3dbe3b3e7f
commit
6b8b152444
|
@ -1019,7 +1019,9 @@ int Client::write_quic() {
|
||||||
auto should_break = false;
|
auto should_break = false;
|
||||||
switch (nwrite) {
|
switch (nwrite) {
|
||||||
case NGTCP2_ERR_STREAM_DATA_BLOCKED:
|
case NGTCP2_ERR_STREAM_DATA_BLOCKED:
|
||||||
if (ngtcp2_conn_get_max_data_left(quic.conn) == 0) {
|
case NGTCP2_ERR_STREAM_SHUT_WR:
|
||||||
|
if (nwrite == NGTCP2_ERR_STREAM_DATA_BLOCKED &&
|
||||||
|
ngtcp2_conn_get_max_data_left(quic.conn) == 0) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1028,13 +1030,6 @@ int Client::write_quic() {
|
||||||
}
|
}
|
||||||
should_break = true;
|
should_break = true;
|
||||||
break;
|
break;
|
||||||
case NGTCP2_ERR_EARLY_DATA_REJECTED:
|
|
||||||
case NGTCP2_ERR_STREAM_SHUT_WR:
|
|
||||||
case NGTCP2_ERR_STREAM_NOT_FOUND: // This means that stream is
|
|
||||||
// closed.
|
|
||||||
assert(0);
|
|
||||||
// TODO Perhaps, close stream or this should not happen?
|
|
||||||
break;
|
|
||||||
case NGTCP2_ERR_WRITE_STREAM_MORE:
|
case NGTCP2_ERR_WRITE_STREAM_MORE:
|
||||||
assert(ndatalen > 0);
|
assert(ndatalen > 0);
|
||||||
if (s->add_write_offset(stream_id, ndatalen) != 0) {
|
if (s->add_write_offset(stream_id, ndatalen) != 0) {
|
||||||
|
|
Loading…
Reference in New Issue