debug("packet_write_poll: sent %d bytes", len);
packet_write_poll(){	int len = buffer_len(&output);	if (len > 0) {		len = write(connection_out, buffer_ptr(&output), len);		if (len <= 0) {			if (errno == EAGAIN)				return;			else				fatal("Write failed: %.100s", strerror(errno));		}debug("packet_write_poll: sent %d bytes", len);		buffer_consume(&output, len);	}}