Skip to content

Fixed parsing headers (HTTPConnection::readLine)#12

Open
pawel2000pl wants to merge 3 commits intomeshtastic:masterfrom
pawel2000pl:master
Open

Fixed parsing headers (HTTPConnection::readLine)#12
pawel2000pl wants to merge 3 commits intomeshtastic:masterfrom
pawel2000pl:master

Conversation

@pawel2000pl
Copy link
Copy Markdown

@pawel2000pl pawel2000pl commented Apr 11, 2026

I found an error that caused the application to hang in an infinite loop.
When:

  • ( newChar == '\r' ) was true
  • (_bufferProcessed+1 < _bufferUnusedIdx) was false

there weren't any action in a while loop.

Example: _bufferProcessed = 511, _bufferUnusedIdx = 512, newChar = '\r'

I also added memory reservation to avoid frequent reallocations and thus mitigate memory segmentation on a microcontroller.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 11, 2026

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants