Changeset 13135 for trunk/FACT++/dim/src/tcpip.c
- Timestamp:
- 03/18/12 20:53:49 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/dim/src/tcpip.c
r12757 r13135 89 89 static int DIM_IO_valid = 1; 90 90 91 static int Listen_backlog = SOMAXCONN; 91 92 static int Keepalive_timeout_set = 0; 92 93 static int Write_timeout = WRITE_TMOUT; … … 97 98 int Tcpip_max_io_data_write = TCP_SND_BUF_SIZE - 16; 98 99 int Tcpip_max_io_data_read = TCP_RCV_BUF_SIZE - 16; 100 101 void dim_set_listen_backlog(int size) 102 { 103 Listen_backlog = size; 104 } 105 106 int dim_get_listen_backlog() 107 { 108 return(Listen_backlog); 109 } 99 110 100 111 void dim_set_keepalive_timeout(int secs) … … 1138 1149 } 1139 1150 1140 if( (ret = listen(path, SOMAXCONN)) == -1 )1151 if( (ret = listen(path, Listen_backlog)) == -1 ) 1141 1152 { 1142 1153 closesock(path);
Note:
See TracChangeset
for help on using the changeset viewer.