mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-26 22:30:28 +00:00
ifdef __linux__ keepalive variables also
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@308098 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user