diff options
author | mnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-01 14:34:31 +0000 |
---|---|---|
committer | mnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-01 14:34:31 +0000 |
commit | fddc76fa6cd610c08554e67a7fc2fa8197d31181 (patch) | |
tree | 27d463b0137aaac7f45d733013739d0b02e21016 /main/manager.c | |
parent | 51893339b93ca77897eae6fa40754a853945eef7 (diff) |
Altered my comment about TCP_NODELAY
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@273350 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/manager.c')
-rw-r--r-- | main/manager.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/main/manager.c b/main/manager.c index 54d9760d2..678fd823e 100644 --- a/main/manager.c +++ b/main/manager.c @@ -4610,10 +4610,9 @@ static void *session_do(void *data) goto done; } - /* XXX here we set TCP_NODELAY on the socket to disable Nagle's - * algorithm. A better solution might be to buffer outgoing messages - * until they are complete then write them to the socket in one burst - * rather than sending them in bits and pieces. */ + /* here we set TCP_NODELAY on the socket to disable Nagle's algorithm. + * This is necessary to prevent delays (caused by buffering) as we + * write to the socket in bits and peices. */ p = getprotobyname("tcp"); if (p) { int arg = 1; |