Skip to content

Conversation

42dot-bongjun-hur
Copy link

adds the following code to netconn_write_vectors_partly:

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

I think, it prevents writing when the send mailbox is closed, avoiding a potential deadlock.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant