- Timestamp:
- 08/21/12 21:44:43 (12 years ago)
- Location:
- trunk/FACT++/dim
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/dim/README_v19.txt
r14286 r14403 1 1 2 DIM version 19.3 7Release Notes2 DIM version 19.38 Release Notes 3 3 4 4 Notes 1 and 2 for Unix Users only … … 17 17 Dns </dev/null >& dns.log & 18 18 19 NOTE 3: The Version Number service provided by servers is now set to 1937. 19 NOTE 3: The Version Number service provided by servers is now set to 1938. 20 21 09/08/2012 22 Changes 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 20 26 21 27 27/06/2012 -
trunk/FACT++/dim/dim/dim.h
r14286 r14403 14 14 #include "dim_common.h" 15 15 16 #define DIM_VERSION_NUMBER 193 716 #define DIM_VERSION_NUMBER 1938 17 17 18 18 … … 442 442 TIMR_ENT *timr_ent; 443 443 int already; 444 char long_task_name[MAX_ TASK_NAME*10];444 char long_task_name[MAX_NAME]; 445 445 } DNS_CONNECTION; 446 446 -
trunk/FACT++/dim/src/dns.c
r14286 r14403 525 525 { 526 526 strncpy(Dns_conns[conn_id].long_task_name, packet->services[i].service_name, 527 MAX_ TASK_NAME*10);527 MAX_NAME); 528 528 ptrt = strstr(Dns_conns[conn_id].long_task_name,"/CLIENT_LIST"); 529 529 *ptrt = '\0'; … … 1570 1570 int type; 1571 1571 1572 if(tag){} 1572 1573 if(size) 1573 1574 { -
trunk/FACT++/dim/src/open_dns.c
r11071 r14403 146 146 } 147 147 148 void 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 148 161 int rand_tmout( int min, int max ) 149 162 { … … 174 187 DNS_ids[SRC_DIS] = (DNS_CONN *)sid; 175 188 DNS_ids[SRC_DIC] = (DNS_CONN *)cid; 189 rand_tmout_init(); 176 190 } 177 191 ENABLE_AST
Note:
See TracChangeset
for help on using the changeset viewer.