aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormay <may@f38db490-d61c-443f-a65b-d21fe96a405b>2011-02-16 08:06:01 +0000
committermay <may@f38db490-d61c-443f-a65b-d21fe96a405b>2011-02-16 08:06:01 +0000
commitca683dd53349967c5735d3e3d0420b6e86e42edf (patch)
tree7e2def60c0d788f2478bac45ff65c25b30a32afc
parente674d7dd1099c2abd826a0623c1755cda034e06f (diff)
Merged revisions 308098 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8 ........ r308098 | may | 2011-02-16 10:57:22 +0300 (Wed, 16 Feb 2011) | 2 lines ifdef __linux__ keepalive variables also ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@308099 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--addons/ooh323c/src/ooSocket.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/ooh323c/src/ooSocket.c b/addons/ooh323c/src/ooSocket.c
index 5ec8ed5b3..5527c5f14 100644
--- a/addons/ooh323c/src/ooSocket.c
+++ b/addons/ooh323c/src/ooSocket.c
@@ -191,7 +191,9 @@ typedef socklen_t OOSOCKLEN;
int ooSocketCreate (OOSOCKET* psocket)
{
int on;
+#ifdef __linux__
int keepalive = 1, keepcnt = 24, keepidle = 120, keepintvl = 30;
+#endif
struct linger linger;
OOSOCKET sock = socket (AF_INET,
SOCK_STREAM,