diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-10-28 22:53:15 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-10-28 22:53:15 +0000 |
commit | c53ad1b7394069d5a82fe4a3b58a620a1103554e (patch) | |
tree | 3c5a1ad27edd60a24dd5d5624e47b7f2c44b9c64 /usr.bin/tmux/tmux.h | |
parent | c95f9b914e097756a2eb05135945a2aabb8370c4 (diff) |
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.
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r-- | usr.bin/tmux/tmux.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h index f8b7778a6f9..a7ea4455666 100644 --- a/usr.bin/tmux/tmux.h +++ b/usr.bin/tmux/tmux.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.h,v 1.151 2009/10/27 13:03:33 nicm Exp $ */ +/* $OpenBSD: tmux.h,v 1.152 2009/10/28 22:53:14 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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! |