- truncate the io_buffer *before* we write out the window size,
  otherwise the client never receives it. Duh!