Fix locking & introduce "end_of_input"
If we get told that there is no more input for a block
we can return error and avoid waiting indefinitely.
Signed-off-by:
Luca Fulchir <luker@fenrirproject.org>
If we get told that there is no more input for a block
we can return error and avoid waiting indefinitely.
Signed-off-by:
Luca Fulchir <luker@fenrirproject.org>