debug("internal error: channel %d: cannot send IEOF for istate %d",c->self,c->istate);
debug("internal error: channel %d: cannot send OCLOSE for ostate %d",c->self,c->istate);
chan_send_oclose(Channel *c){	switch(c->ostate){	case CHAN_OUTPUT_OPEN:	case CHAN_OUTPUT_WAIT_DRAIN:		chan_shutdown_write(c);		buffer_consume(&c->output, buffer_len(&c->output));		packet_start(SSH_MSG_CHANNEL_OUTPUT_CLOSE);		packet_put_int(c->remote_id);		packet_send();		break;	default:		debug("internal error: channel %d: cannot send IEOF for istate %d",c->self,c->istate);		break;	}}