[dvblast-devel] comm: Use smaller max packet size over unix sockets.

Georgi Chorbadzhiyski git at videolan.org
Thu Jan 16 13:53:59 CET 2014


dvblast | branch: master | Georgi Chorbadzhiyski <gf at unixsol.org> | Thu Jan 16 14:37:23 2014 +0200| [f166e783c327dcca8fdace5dfedb5d09825e0844] | committer: Georgi Chorbadzhiyski

comm: Use smaller max packet size over unix sockets.

With size 65535 I get "message too long" error when executing get_pids
command via dvblastctl.

4096 is safe and should always work.

> http://git.videolan.org/gitweb.cgi/dvblast.git/?a=commit;h=f166e783c327dcca8fdace5dfedb5d09825e0844
---

 comm.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/comm.h b/comm.h
index 00fb6af..fe58e3e 100644
--- a/comm.h
+++ b/comm.h
@@ -26,7 +26,7 @@
 #define COMM_BUFFER_SIZE (COMM_HEADER_SIZE + ((PSI_PRIVATE_MAX_SIZE + PSI_HEADER_SIZE) * (PSI_TABLE_MAX_SECTIONS / 2)))
 #define COMM_HEADER_MAGIC 0x49
 
-#define COMM_MAX_MSG_CHUNK 65535
+#define COMM_MAX_MSG_CHUNK 4096
 
 typedef enum {
     CMD_INVALID             = 0,



More information about the dvblast-devel mailing list