mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 15:49:56 +00:00
Altered my comment about TCP_NODELAY
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@273350 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -4610,10 +4610,9 @@ static void *session_do(void *data)
|
|||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* XXX here we set TCP_NODELAY on the socket to disable Nagle's
|
/* here we set TCP_NODELAY on the socket to disable Nagle's algorithm.
|
||||||
* algorithm. A better solution might be to buffer outgoing messages
|
* This is necessary to prevent delays (caused by buffering) as we
|
||||||
* until they are complete then write them to the socket in one burst
|
* write to the socket in bits and peices. */
|
||||||
* rather than sending them in bits and pieces. */
|
|
||||||
p = getprotobyname("tcp");
|
p = getprotobyname("tcp");
|
||||||
if (p) {
|
if (p) {
|
||||||
int arg = 1;
|
int arg = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user