If any client currently displaying a window pane has more than 1 KB of output

buffered, don't accept any further data from the process running in the pane.

This makes tmux much more responsive when flooded with output, although other
buffers can still have an impact when running remotely.

Prompted by a query from Ranganathan Sankaralingam.
This commit is contained in:
Nicholas Marriott
2009-10-28 22:53:14 +00:00
parent 1eaefbf169
commit dc3fdc8dc7
2 changed files with 29 additions and 1 deletions

3
tmux.h
View File

@ -65,6 +65,9 @@ extern char **environ;
/* Maximum poll timeout (when attached). */
#define POLL_TIMEOUT 50
/* Maximum data to buffer for output before suspending reading from panes. */
#define BACKOFF_THRESHOLD 1024
/*
* Maximum sizes of strings in message data. Don't forget to bump
* PROTOCOL_VERSION if any of these change!