Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Fix SMS Segment Ordering Issue in smsdb_put #12

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

sparkcyf
Copy link

@sparkcyf sparkcyf commented Feb 3, 2024

Related issue: #11 (comment)

The condition check in the smsdb_put function now ensures all segments are received before processing. (when order == parts, (e.g. the quectel receive the msg parts in the order of 1, 3, 2, after received the third msg, the res > 0 && order == parts conditions will be satisfied, however part 2 of the msg still not received.

This commit may fixes the issue where the segments were received out of order and the message was not being reassembled correctly.

The condition check in the smsdb_put function now ensures all segments are received before processing. This fixes the issue where the segments were received out of order and the message was not being reassembled correctly.
@RoEdAl RoEdAl merged commit 9b9f5c4 into RoEdAl:master Feb 5, 2024
2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants