aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2010-08-11 22:16:04 +0000
committerTiago Cunha <tcunha@gmx.com>2010-08-11 22:16:04 +0000
commit761bd3c9e3abd835086fad770e32d00642b74591 (patch)
tree0197279d824c92e9fd013751588daa1281945c73 /tmux.h
parent5e9429e2d6eb2b6da947cb8e26ee2369a0e110e2 (diff)
downloadrtmux-761bd3c9e3abd835086fad770e32d00642b74591.tar.gz
rtmux-761bd3c9e3abd835086fad770e32d00642b74591.tar.bz2
rtmux-761bd3c9e3abd835086fad770e32d00642b74591.zip
Sync OpenBSD patchset 745:
Change the way backoff works. Instead of stopping reading from the pty when the client tty backs up too much, just stop updating the tty and only update the internal screen. Then when the tty recovers, force a redraw. This prevents a dodgy client from causing other clients to go into backoff while still allowing tmux to be responsive (locally) when seeing lots of output.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/tmux.h b/tmux.h
index 996a9ebe..6e8028b6 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.572 2010-08-09 21:44:25 tcunha Exp $ */
+/* $Id: tmux.h,v 1.573 2010-08-11 22:16:03 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -58,8 +58,8 @@ extern char **environ;
/* Automatic name refresh interval, in milliseconds. */
#define NAME_INTERVAL 500
-/* Maximum data to buffer for output before suspending reading from panes. */
-#define BACKOFF_THRESHOLD 1024
+/* Maximum data to buffer for output before suspending writing to a tty. */
+#define BACKOFF_THRESHOLD 16384
/*
* Maximum sizes of strings in message data. Don't forget to bump
@@ -1016,6 +1016,7 @@ struct tty {
#define TTY_UTF8 0x8
#define TTY_STARTED 0x10
#define TTY_OPENED 0x20
+#define TTY_BACKOFF 0x40
int flags;
int term_flags;
@@ -1125,6 +1126,8 @@ struct client {
#define CLIENT_DEAD 0x200
#define CLIENT_BORDERS 0x400
#define CLIENT_READONLY 0x800
+#define CLIENT_BACKOFF 0x1000
+#define CLIENT_REDRAWWINDOW 0x2000
int flags;
struct event identify_timer;