Просмотр исходного кода

Temporary fix for jitter calculation

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1674 f882894a-f735-0410-b71e-b25c423dba1c
Thomas Guyot-Sionnest 19 лет назад
Родитель
Сommit
fd440b64a6
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      plugins/check_ntp.c

+ 4 - 1
plugins/check_ntp.c

@@ -475,7 +475,10 @@ double offset_request(const char *host, int *status){
 	}
 
 	/* cleanup */
-	for(j=0; j<num_hosts; j++){ close(socklist[j]); }
+	/* FIXME: Not closing the socket to avoid re-use of the local port
+	 * which can cause old NTP packets to be read instead of NTP control
+	 * pactets in jitter_request(). THERE MUST BE ANOTHER WAY...
+	 * for(j=0; j<num_hosts; j++){ close(socklist[j]); } */
 	free(socklist);
 	free(ufds);
 	free(servers);