[PATCH] gssdp-client: increase BUF_SIZE to 65536
- From: Steffen Sledz <sledz dresearch-fe de>
- To: gupnp-list gnome org
- Subject: [PATCH] gssdp-client: increase BUF_SIZE to 65536
- Date: Mon, 31 Oct 2011 14:24:35 +0100
A size of 1024 is a really hard limitation. The UDP length field
size sets a theoretical limit of 65,535 bytes (8 byte header +
65,527 bytes of data) for a UDP datagram.
Signed-off-by: Steffen Sledz <sledz dresearch-fe de>
---
libgssdp/gssdp-client.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libgssdp/gssdp-client.c b/libgssdp/gssdp-client.c
index 7bbc71d..c2d2561 100644
--- a/libgssdp/gssdp-client.c
+++ b/libgssdp/gssdp-client.c
@@ -70,7 +70,7 @@ typedef unsigned long in_addr_t;
#endif
/* Size of the buffer used for reading from the socket */
-#define BUF_SIZE 1024
+#define BUF_SIZE 65536
static void
gssdp_client_initable_iface_init (gpointer g_iface,
--
1.7.7
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]