Try to set the initial window size automatically based on size of socket buffer and term length.
Try to set the initial window size automatically based on size of socket buffer and term length.