|
|
@ -6647,8 +6647,8 @@ static void *session_do(void *data)
|
|
|
|
/* here we set TCP_NODELAY on the socket to disable Nagle's algorithm.
|
|
|
|
/* here we set TCP_NODELAY on the socket to disable Nagle's algorithm.
|
|
|
|
* This is necessary to prevent delays (caused by buffering) as we
|
|
|
|
* This is necessary to prevent delays (caused by buffering) as we
|
|
|
|
* write to the socket in bits and pieces. */
|
|
|
|
* write to the socket in bits and pieces. */
|
|
|
|
if (setsockopt(ast_iostream_get_fd(ser->stream), IPPROTO_TCP, TCP_NODELAY, (char *)&arg, sizeof(arg) ) < 0) {
|
|
|
|
if (setsockopt(ast_iostream_get_fd(ser->stream), IPPROTO_TCP, TCP_NODELAY, (char *) &arg, sizeof(arg)) < 0) {
|
|
|
|
ast_log(LOG_WARNING, "Failed to set manager tcp connection to TCP_NODELAY mode: %s\nSome manager actions may be slow to respond.\n", strerror(errno));
|
|
|
|
ast_log(LOG_WARNING, "Failed to set TCP_NODELAY on manager connection: %s\n", strerror(errno));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ast_iostream_nonblock(ser->stream);
|
|
|
|
ast_iostream_nonblock(ser->stream);
|
|
|
|
|
|
|
|
|
|
|
|