Changeset 14403 for trunk/FACT++


Ignore:
Timestamp:
08/21/12 21:44:43 (12 years ago)
Author:
tbretz
Message:
Updated to v19r38
Location:
trunk/FACT++/dim
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/dim/README_v19.txt

    r14286 r14403  
    11
    2                     DIM version 19.37 Release Notes
     2                    DIM version 19.38 Release Notes
    33
    44Notes 1 and 2 for Unix Users only
     
    1717                Dns </dev/null >& dns.log &
    1818
    19 NOTE 3: The Version Number service provided by servers is now set to 1937.
     19NOTE 3: The Version Number service provided by servers is now set to 1938.
     20
     2109/08/2012
     22Changes for version 19.38:
     23    - The timeout used by clients and servers to try to reconnect to a DNS was supposed to be random,
     24      to avoid all processes retrying at the same time, but it wasn't - fixed.
     25
    2026
    212727/06/2012
  • trunk/FACT++/dim/dim/dim.h

    r14286 r14403  
    1414#include "dim_common.h"
    1515
    16 #define DIM_VERSION_NUMBER 1937
     16#define DIM_VERSION_NUMBER 1938
    1717
    1818
     
    442442        TIMR_ENT *timr_ent;
    443443        int already;
    444         char long_task_name[MAX_TASK_NAME*10];
     444        char long_task_name[MAX_NAME];
    445445} DNS_CONNECTION;
    446446
  • trunk/FACT++/dim/src/dns.c

    r14286 r14403  
    525525                                {
    526526                                        strncpy(Dns_conns[conn_id].long_task_name, packet->services[i].service_name,
    527                                                 MAX_TASK_NAME*10);
     527                                                MAX_NAME);
    528528                                        ptrt = strstr(Dns_conns[conn_id].long_task_name,"/CLIENT_LIST");
    529529                                        *ptrt = '\0';
     
    15701570        int type;
    15711571       
     1572        if(tag){}
    15721573        if(size)
    15731574        {
  • trunk/FACT++/dim/src/open_dns.c

    r11071 r14403  
    146146}
    147147
     148void rand_tmout_init()
     149{
     150        char pid_str[MAX_TASK_NAME];
     151        int ip, pid;
     152        extern int get_node_addr();
     153        extern int get_proc_name();
     154
     155        get_node_addr((char *)&ip);
     156        get_proc_name(pid_str);
     157        sscanf(pid_str,"%d",&pid);
     158        srand(ip+pid);
     159}
     160
    148161int rand_tmout( int min, int max )
    149162{
     
    174187                DNS_ids[SRC_DIS] = (DNS_CONN *)sid;
    175188                DNS_ids[SRC_DIC] = (DNS_CONN *)cid;
     189                rand_tmout_init();
    176190        }
    177191        ENABLE_AST
Note: See TracChangeset for help on using the changeset viewer.