From edfb5ae48de7494842fec2ea4d531d707a24eb5c Mon Sep 17 00:00:00 2001 From: g3gg0 Date: Mon, 2 Oct 2023 15:14:00 +0200 Subject: [PATCH] increase buffer size to fix upload error --- include/tls_config.h | 4 ++-- src/handler_api.c | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/include/tls_config.h b/include/tls_config.h index 63a1bfbc..dd173029 100644 --- a/include/tls_config.h +++ b/include/tls_config.h @@ -31,8 +31,8 @@ #ifndef _TLS_CONFIG_H #define _TLS_CONFIG_H -#define TLS_TX_BUFFER_SIZE 8192 -#define TLS_RX_BUFFER_SIZE 8192 +#define TLS_TX_BUFFER_SIZE TLS_MAX_RECORD_LENGTH +#define TLS_RX_BUFFER_SIZE TLS_MAX_RECORD_LENGTH #define TLS_PRIVATE_CONTEXT \ char client_cert_issuer[128]; \ diff --git a/src/handler_api.c b/src/handler_api.c index 237b198f..58a27b26 100644 --- a/src/handler_api.c +++ b/src/handler_api.c @@ -832,7 +832,6 @@ error_t handleApiUploadFirmware(HttpConnection *connection, const char_t *uri, c case NO_ERROR: statusCode = 200; TRACE_INFO("Received new file:\r\n"); - TRACE_INFO(" '%s'\r\n", ctx.root_path); TRACE_INFO(" '%s'\r\n", ctx.filename); osSnprintf(message, sizeof(message), "%s", &ctx.filename[strlen(ctx.root_path) + 1]); break;