rewrote server sliding window