PERFORCE change 125708 for review

Matus Harvan mharvan at FreeBSD.org
Sun Aug 26 04:15:46 PDT 2007


http://perforce.freebsd.org/chv.cgi?CH=125708

Change 125708 by mharvan at 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);
 }


More information about the p4-projects mailing list