proxy data sender should sleep CONFIG_PROXYDATA_FREQUENCY - sec

XMLWordPrintable

    • Type: Incident report
    • Resolution: Won't fix
    • Priority: Minor
    • None
    • Affects Version/s: 2.2.7
    • Component/s: Proxy (P)
    • None

      In the current implementation, proxy data sender will sleep the specified time in DataSenderFrequency, regardless of sending elaps time.

      --- zabbix-2.2.7/src/zabbix_proxy/datasender/datasender.c-    Fri Oct 24 20:54:43 2014
      +++ zabbix-2.2.7/src/zabbix_proxy/datasender/datasender.c       Thu Jan 15 19:11:47 2015
      @@ -200,6 +200,6 @@
                      zbx_setproctitle("%s [sent %d values in " ZBX_FS_DBL " sec, idle %d sec]",
                                      get_process_type_string(process_type), records, sec, CONFIG_PROXYDATA_FREQUENCY);
       
      -               zbx_sleep_loop(CONFIG_PROXYDATA_FREQUENCY);
      +               zbx_sleep_loop(CONFIG_PROXYDATA_FREQUENCY - (int)sec);
              }
       }
      

            Assignee:
            Unassigned
            Reporter:
            KOMEDA Shinji
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: