]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
For windows portability, example.conf documentation.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 31 Jul 2018 10:24:09 +0000 (10:24 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 31 Jul 2018 10:24:09 +0000 (10:24 +0000)
git-svn-id: file:///svn/unbound/trunk@4817 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/example.conf.in
testcode/streamtcp.c

index e9857b4972991d8db309e6f13402706e5cc1262e..e2d6a038a48fe44814ea74d7950b24acde85c08e 100644 (file)
@@ -212,6 +212,9 @@ server:
        # Default is 0, system default MSS.
        # outgoing-tcp-mss: 0
 
+       # Idle TCP timeout, connection closed in milliseconds
+       # tcp-idle-timeout: 30000
+
        # Use systemd socket activation for UDP, TCP, and control sockets.
        # use-systemd: no
 
index e5cf7dde3aa4bf0a5cdb3175c4c57c510e141000..1dca08e99b852649e7032c879dd3117019fee699 100644 (file)
@@ -314,8 +314,13 @@ send_em(const char* svr, int udp, int usessl, int noanswer, int delay,
                }
        }
        for(i=0; i<num; i+=3) {
-               if (delay != 0)
+               if (delay != 0) {
+#ifdef HAVE_SLEEP
                        sleep((unsigned)delay);
+#else
+                       Sleep(delay*1000);
+#endif
+               }
                printf("\nNext query is %s %s %s\n", qs[i], qs[i+1], qs[i+2]);
                write_q(fd, udp, ssl, buf, (uint16_t)get_random(), qs[i],
                        qs[i+1], qs[i+2]);