Skip to content

Commit

Permalink
conn: stop crashing on small receiving buffers (#494)
Browse files Browse the repository at this point in the history
Resolves #490.
  • Loading branch information
matthew-levan authored Jul 20, 2023
2 parents 50d602e + 0fed1f9 commit 1384f9d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pkg/vere/io/conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,12 +337,9 @@ _conn_moor_bail(void* ptr_v, ssize_t err_i, const c3_c* err_c)

if ( err_i != UV_EOF ) {
u3l_log("conn: moor bail %zd %s", err_i, err_c);
if ( _(can_u->liv_o) ) {
_conn_send_noun(can_u, u3nq(0, c3__bail, u3i_word(err_i),
u3i_string(err_c)));
can_u->liv_o = c3n;
}
can_u->liv_o = c3n;
}

_conn_close_chan(san_u, can_u);
}

Expand Down

0 comments on commit 1384f9d

Please sign in to comment.