Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/api/api_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,12 @@ netconn_write_vectors_partly(struct netconn *conn, struct netvector *vectors, u1
return ERR_VAL;
}

if (conn->flags & NETCONN_FLAG_MBOXCLOSED) {
/* don't write if closed: this might block the application task
waiting on sendmbox forever! */
return ERR_CONN;
}

/* sum up the total size */
size = 0;
for (i = 0; i < vectorcnt; i++) {
Expand Down