Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Aug 2007 11:15:45 GMT
From:      Matus Harvan <mharvan@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 125708 for review
Message-ID:  <200708261115.l7QBFjid042472@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=125708

Change 125708 by mharvan@mharvan_bike-planet on 2007/08/26 11:15:28

	allow a keep-alive itneerval of < 1 second for the ICMP plugin

Affected files ...

.. //depot/projects/soc2007/mharvan-mtund/mtund.src/plugin_icmp.c#14 edit

Differences ...

==== //depot/projects/soc2007/mharvan-mtund/mtund.src/plugin_icmp.c#14 (text+ko) ====

@@ -68,7 +68,8 @@
  * how often should an empty request be sent to the server - This is
  * useful when the server has data to send but the client doesn't.
  */
-#define PLUGIN_ICMP_KEEP_ALIVE 1
+#define PLUGIN_ICMP_KEEP_ALIVE_SEC 0
+#define PLUGIN_ICMP_KEEP_ALIVE_USEC 500000
 
 struct conn {
 	clientid_t clid;
@@ -208,8 +209,8 @@
 {
     struct timeval tv;
     
-    tv.tv_sec=PLUGIN_ICMP_KEEP_ALIVE;
-    tv.tv_usec=0;
+    tv.tv_sec=PLUGIN_ICMP_KEEP_ALIVE_SEC;
+    tv.tv_usec=PLUGIN_ICMP_KEEP_ALIVE_USEC;
     evtimer_del(ev);
     evtimer_add(ev, &tv);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708261115.l7QBFjid042472>