pub fn write_responses( socket: usize, buf: &[Response], behavior: SignalBehavior, ) -> Result<usize>