Skip to content

Commit

Permalink
Set default BearSSL Rx buffer for IMAP to 2k to prevent ESP8266 OOM
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed Apr 1, 2024
1 parent bda5e84 commit a78573f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ESP_Mail_IMAP.h
Original file line number Diff line number Diff line change
Expand Up @@ -4854,7 +4854,7 @@ bool IMAPSession::connect(bool &ssl)
bool secureMode = true;

client.txBufDivider = 16; // minimum, tx buffer size for ssl data and request command data
client.rxBufDivider = 1;
client.rxBufDivider = 8;
if (_imap_data)
{
if (!_headerOnly && !_imap_data->firmware_update.attach_filename.length() == 0 && !_imap_data->enable.html && !_imap_data->enable.text && !_imap_data->download.attachment && !_imap_data->download.inlineImg && !_imap_data->download.html && !_imap_data->download.text)
Expand Down

0 comments on commit a78573f

Please sign in to comment.