From 1961868cd5a1b12f03789d28ade98b4082acd4f2 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Fri, 1 Aug 2014 12:30:55 +0200 Subject: [PATCH] miniupnpd/minissdp.c: add a default delay before SSDP response fixes #084 --- miniupnpd/minissdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniupnpd/minissdp.c b/miniupnpd/minissdp.c index 12b63c5..2775a7f 100644 --- a/miniupnpd/minissdp.c +++ b/miniupnpd/minissdp.c @@ -748,7 +748,7 @@ ProcessSSDPData(int s, const char *bufr, int n, #if defined(UPNP_STRICT) || defined(DELAY_MSEARCH_RESPONSE) int mx_value = -1; #endif - unsigned int delay = 0; + unsigned int delay = 50; /* Non-zero default delay to prevent flooding */ /* UPnP Device Architecture v1.1. 1.3.3 Search response : * Devices responding to a multicast M-SEARCH SHOULD wait a random period * of time between 0 seconds and the number of seconds specified in the