diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-11-02 21:32:52 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-11-02 21:32:52 +0000 |
commit | 738489f2bb6bc28b6375c367b8313e376b2de5b1 (patch) | |
tree | a1567935a701a8c2e66d414a816f35a4d49be85a /tmux.h | |
parent | d57ba5e30bfe0fb950084b10570ff49945468c84 (diff) | |
download | rtmux-738489f2bb6bc28b6375c367b8313e376b2de5b1.tar.gz rtmux-738489f2bb6bc28b6375c367b8313e376b2de5b1.tar.bz2 rtmux-738489f2bb6bc28b6375c367b8313e376b2de5b1.zip |
Sync OpenBSD patchset 472:
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 'tmux.h')
-rw-r--r-- | tmux.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.489 2009-10-28 23:14:15 tcunha Exp $ */ +/* $Id: tmux.h,v 1.490 2009-11-02 21:32:52 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -63,6 +63,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! |