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

MQTT file size improvements #7166

Closed
wants to merge 3 commits into from
Closed

MQTT file size improvements #7166

wants to merge 3 commits into from

Conversation

piru
Copy link

@piru piru commented Jun 1, 2021

  • detect when reported file size is obviously illegal as per MQTT Version 5.0 section "1.5.5 Variable Byte Integer"
  • return CURLE_FILESIZE_EXCEEDED when file size would exceed limit set by CURLOPT_MAXFILESIZE_LARGE (if set)

Copy link
Member

@bagder bagder left a comment

Choose a reason for hiding this comment

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

Bonus points will be handed out if you also add test cases that verify...

@piru
Copy link
Author

piru commented Jun 1, 2021

I think the file size check should come a bit later, I'll adjust the code a bit. I'll also look into implementing test for the bogus size being returned by the server.

Harry Sintonen added 2 commits June 2, 2021 01:13
…llegal size sent by the server and client --max-filesize working as expected
@bagder bagder closed this in 8ccf755 Jun 2, 2021
@bagder
Copy link
Member

bagder commented Jun 2, 2021

Thanks!

@piru piru deleted the mqtt-file-size-limit branch June 2, 2021 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants