Skip to content

Fixed parsing headers (HTTPConnection::readLine) - #12

Open
pawel2000pl wants to merge 3 commits into
meshtastic:masterfrom
pawel2000pl:master
Open

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

Conversation

@pawel2000pl

@pawel2000pl pawel2000pl commented Apr 11, 2026

Copy link
Copy Markdown

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

CLAassistant commented Apr 11, 2026

Copy link
Copy Markdown

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