[gssdp] gssdp-client: increase BUF_SIZE to 65536
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gssdp] gssdp-client: increase BUF_SIZE to 65536
- Date: Mon, 31 Oct 2011 14:08:34 +0000 (UTC)
commit 12dafb895a9c1567fb25748df641222ed609a0b5
Author: Steffen Sledz <sledz dresearch-fe de>
Date: Mon Oct 31 14:24:35 2011 +0100
gssdp-client: increase BUF_SIZE to 65536
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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]