Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

applications: serial_lte_modem: NCSIDB-258 parse large http header #3421

Merged
merged 1 commit into from
Dec 8, 2020

Conversation

lats1980
Copy link
Contributor

Some http reply contains larger header like Set-Cookie, Report-To.
If the response header is larger than receive buffer, the length of parsed http response
will be over the length of receive buffer.

This commit adds below changes to handle larger http response header:

  • increase receive buffer to 1KB
  • check the length of parsed response with length of receive buffer
  • Warning message if larger receive buffer is required

The issue is reported in the below JIRA:
https://projecttools.nordicsemi.no/jira/browse/NCSIDB-258

Signed-off-by: Larry Tsai larry.tsai@nordicsemi.no

Some http reply contains larger header like Set-Cookie, Report-To.
If the response header is larger than receive buffer, the length
of parsed http response will be over the length of receive buffer.

This commit adds below changes to handle larger http response header:
 - increase receive buffer to 1KB
 - check the length of parsed response with length of receive buffer
 - Warning message if larger receive buffer is required

The issue is reported in the below JIRA:
https://projecttools.nordicsemi.no/jira/browse/NCSIDB-258

Signed-off-by: Larry Tsai <larry.tsai@nordicsemi.no>
@lats1980 lats1980 changed the title applications: serial_lte_modem: NCSIDB-258 handle large http response applications: serial_lte_modem: NCSIDB-258 parse large http header Nov 29, 2020
Copy link
Contributor

@junqingzou junqingzou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks all fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants