From 72f09b658231bda761e906853228625447e14347 Mon Sep 17 00:00:00 2001 From: ted shroyer Date: Tue, 26 May 2015 14:31:18 -0500 Subject: [PATCH] Using setting for unix socket response buffer size On networks with about 200 upnp devices, search type 3 (all) truncates the full response. Adding a configuration setting that allows for building minissdpd to have a larger buffer for the response. --- minissdpd/minissdpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minissdpd/minissdpd.c b/minissdpd/minissdpd.c index adaa72e..669b888 100644 --- a/minissdpd/minissdpd.c +++ b/minissdpd/minissdpd.c @@ -726,7 +726,7 @@ void processRequest(struct reqelem * req) const unsigned char * p; int type; struct device * d = devlist; - unsigned char rbuf[4096]; + unsigned char rbuf[RESPONSE_BUFFER_SIZE]; unsigned char * rp = rbuf+1; unsigned char nrep = 0; time_t t;