Skip to content

Commit

Permalink
increase buffer size to fix upload error
Browse files Browse the repository at this point in the history
  • Loading branch information
g3gg0 committed Oct 2, 2023
1 parent 202a901 commit edfb5ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/tls_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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]; \
Expand Down
1 change: 0 additions & 1 deletion src/handler_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit edfb5ae

Please sign in to comment.