Skip to content
This repository was archived by the owner on Mar 22, 2024. It is now read-only.

[WIP][Don't merge] Manage receiver crash #92

Closed
wants to merge 16 commits into from

Conversation

siscia
Copy link
Contributor

@siscia siscia commented Sep 9, 2020

No description provided.

siscia added 16 commits April 29, 2020 12:03
the gateway relies on reading data from the receiver in order to
return controll to the main thread.

When everything goes right, the gateway reads the correct amount of
data from the pipe and exit.
When the receiver crash, for whatever reason, the data is not
present in the pipe. Moreover the pipe is not closed automatically
by the OS, since the File Descriptors are still open and managed by
the gateway itself.

This commit close the FDs on the gateway side, so that when the
receiver crash, no more FDs are open on the socket and the read
call can be unblocked by EOF.
@siscia
Copy link
Contributor Author

siscia commented Sep 15, 2020

Sup by #88

@siscia siscia closed this Sep 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant