Bug#11050:
authorJan Pospíšil <honik@ntc.zcu.cz>
Fri, 30 Sep 2005 09:22:32 +0000 (09:22 +0000)
committerJan Pospíšil <honik@ntc.zcu.cz>
Fri, 30 Sep 2005 09:22:32 +0000 (09:22 +0000)
- softened the CONNECT_ATTEMPTS to 5 attempts only

org.glite.lb.logger/src/logd_proto.c
org.glite.lb.logger/src/logd_proto.h

index 8bee957..5e31fcf 100644 (file)
@@ -261,9 +261,12 @@ int edg_wll_log_proto_server(edg_wll_GssConnection *con, char *name, char *prefi
        errno = i = answer = answer_sent = size = msg_size = dglllid_size = dguser_size = count = count_total = msg_sock = filedesc = filelock_status = /* priority */ unique = err = 0;     
         buf = dglllid = dguser = jobId = name_esc = msg = msg_begin = NULL;
        event = NULL;
-       if (EDG_WLL_LOG_TIMEOUT_MAX > EDG_WLL_LOG_SYNC_TIMEOUT_MAX) timeout.tv_sec = EDG_WLL_LOG_TIMEOUT_MAX;
-       else timeout.tv_sec = EDG_WLL_LOG_SYNC_TIMEOUT_MAX;
-        timeout.tv_usec = 0;
+       if (EDG_WLL_LOG_TIMEOUT_MAX > EDG_WLL_LOG_SYNC_TIMEOUT_MAX) {
+               timeout.tv_sec = EDG_WLL_LOG_TIMEOUT_MAX;
+       } else { 
+               timeout.tv_sec = EDG_WLL_LOG_SYNC_TIMEOUT_MAX;
+       }
+               timeout.tv_usec = 0;
        if (edg_wll_InitContext(&context) != 0) {
                edg_wll_ll_log(LOG_ERR,"edg_wll_InitContex(): error.\n");
                answer = ENOMEM; 
index 365de51..dd4a890 100644 (file)
@@ -43,8 +43,7 @@ void edg_wll_ll_log(int level, const char *fmt, ...);
 
 /* connect defaults */
 
-#define CONNECT_ATTEMPTS       50
-#define CONNECT_TIMEOUT                10
+#define CONNECT_ATTEMPTS       5
 
 
 /* locallogger daemon listen and connect functions prototypes */