From 29fbf1a71d8ac7deace11064fff48e7c2c67c178 Mon Sep 17 00:00:00 2001 From: Geoff Levand Date: Wed, 25 Mar 2009 12:35:47 +0000 Subject: Increase protocol payload size Fixes the problem of big conf files not showing up in the UI. Increases the protocol payload from 4 KiB to 8 KiB. Also, adds some log messages when I/O errors occur, or the payload is too large for the protocol. Signed-off-by: Geoff Levand Signed-off-by: Jeremy Kerr --- lib/pb-protocol/pb-protocol.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/pb-protocol/pb-protocol.h') diff --git a/lib/pb-protocol/pb-protocol.h b/lib/pb-protocol/pb-protocol.h index 972f8f1..36b68dd 100644 --- a/lib/pb-protocol/pb-protocol.h +++ b/lib/pb-protocol/pb-protocol.h @@ -7,7 +7,7 @@ #define PB_SOCKET_PATH "/tmp/petitboot.ui" -#define PB_PROTOCOL_MAX_PAYLOAD_SIZE 4096 +#define PB_PROTOCOL_MAX_PAYLOAD_SIZE (8 * 1024) enum pb_protocol_action { PB_PROTOCOL_ACTION_ADD = 0x1, -- cgit v1.2.1