Ignore:
Timestamp:
03/18/12 20:53:49 (13 years ago)
Author:
tbretz
Message:
Updated to v19r30
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/dim/src/tcpip.c

    r12757 r13135  
    8989static int DIM_IO_valid = 1;
    9090
     91static int Listen_backlog = SOMAXCONN;
    9192static int Keepalive_timeout_set = 0;
    9293static int Write_timeout = WRITE_TMOUT;
     
    9798int Tcpip_max_io_data_write = TCP_SND_BUF_SIZE - 16;
    9899int Tcpip_max_io_data_read = TCP_RCV_BUF_SIZE - 16;
     100
     101void dim_set_listen_backlog(int size)
     102{
     103        Listen_backlog = size;
     104}
     105
     106int dim_get_listen_backlog()
     107{
     108        return(Listen_backlog);
     109}
    99110
    100111void dim_set_keepalive_timeout(int secs)
     
    11381149        }
    11391150
    1140         if( (ret = listen(path, SOMAXCONN)) == -1 )
     1151        if( (ret = listen(path, Listen_backlog)) == -1 )
    11411152        {
    11421153                closesock(path);
Note: See TracChangeset for help on using the changeset viewer.