8000 fruity: Throw CLOSED on tcp write in closed state by mrmacete · Pull Request #1203 · frida/frida-core · GitHub
[go: up one dir, main page]

Skip to content
Merged
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
5 changes: 4 additions & 1 deletion src/fruity/network-stack.vala
Original file line number Diff line number Diff line change
Expand Up @@ -760,8 +760,11 @@ namespace Frida.Fruity {
return OK;
}));

if (n == 0)
if (n == 0) {
if (state == CLOSED)
throw new IOError.CLOSED ("Connection is closed");
throw new IOError.WOULD_BLOCK ("Resource temporarily unavailable");
}

return n;
}
Expand Down
Loading
0