From c11ddf39df8c9ea9e08410277b3a476961ad1df2 Mon Sep 17 00:00:00 2001 From: bustico Date: Mon, 6 Jul 2009 10:22:07 +0000 Subject: force tcp_no_delay option to reduce lag on small messages --- src/param.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'src/param.h') diff --git a/src/param.h b/src/param.h index 85b0542..3e482b3 100644 --- a/src/param.h +++ b/src/param.h @@ -53,6 +53,20 @@ /* maximum number of arguments which can be catched by a regexp */ -#define MAX_MATCHING_ARGS 40 +#define MAX_MATCHING_ARGS 120 + + +/* TCP_NODELAY is for a specific purpose; to disable the Nagle buffering + algorithm. It should only be set for applications that send frequent + small bursts of information without getting an immediate response, + where timely delivery of data is required (the canonical example is + mouse movements). + + Since Ivy is most of the time used to send events, we will priviligiate + lag over throughtput, so _TCP_NO_DELAY_ACTIVATED is set to 1 +*/ +extern const int _TCP_NO_DELAY_ACTIVATED; + + #endif // PARAM_H -- cgit v1.1