From 07b4f2b08fff1fcd5d32fe795a643fe07f23776c Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Tue, 8 Feb 2022 02:07:23 +0000 Subject: [PATCH] I think I imagined this message size limit. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3831 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- src/ssb.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/ssb.c b/src/ssb.c index 4d1319ee..f65ea27f 100644 --- a/src/ssb.c +++ b/src/ssb.c @@ -58,7 +58,7 @@ typedef enum { enum { k_connections_changed_callbacks_max = 8, - k_tf_ssb_rpc_message_body_length_max = 8192, + k_tf_ssb_rpc_message_body_length_max = 65536, }; typedef struct _tf_ssb_broadcast_t tf_ssb_broadcast_t; @@ -1127,13 +1127,6 @@ static bool _tf_ssb_connection_box_stream_recv(tf_ssb_connection_t* connection) } _tf_ssb_nonce_inc(connection->nonce); connection->body_len = htons(*(uint16_t*)header); - if (connection->body_len > k_tf_ssb_rpc_message_body_length_max) - { - char reason[512]; - snprintf(reason, sizeof(reason), "body length is too large: %d", connection->body_len); - _tf_ssb_connection_close(connection, reason); - return false; - } memcpy(connection->body_auth_tag, header + sizeof(uint16_t), sizeof(connection->body_auth_tag)); if (!connection->body_len) {