stream_input: call shutdown(2) if a client EOFs on us