Wakeup waiters on close
Take throughBuffer into account for flow control calculations