ustream-fd: only use read() == 0 as eof indication, and issue a state change notifica...