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

mavlink_ftp: close inactive session #15332

Merged
merged 1 commit into from
Jul 16, 2020
Merged

mavlink_ftp: close inactive session #15332

merged 1 commit into from
Jul 16, 2020

Conversation

lukegluke
Copy link
Contributor

10s inactivity timeout to close session (can be corrected to more suitable timeout).

Without this patch if GCS is disconnected during ftp session, vehicle get stuck with not closed session and GCS will not be able to open new session (FTP: Open failed - out of sessions) until vehicle reboot. Another option is for GCS to send kCmdResetSessions before open any new session, but I suppose it is not right solution (but can be implemented in common).

I'm working with custom GCS, I didn't check this with QGC and don't know will it pass ftp checks.

julianoes
julianoes previously approved these changes Jul 15, 2020
Copy link
Contributor

@julianoes julianoes left a comment

Choose a reason for hiding this comment

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

I think this makes sense. Thanks for the pull request!

@julianoes julianoes requested a review from bkueng July 15, 2020 12:08
Copy link
Member

@bkueng bkueng left a comment

Choose a reason for hiding this comment

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

One minor readability improvement, otherwise looks good.

10s inactivity timeout to close session
Copy link
Member

@bkueng bkueng left a comment

Choose a reason for hiding this comment

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

Thanks

@bkueng bkueng merged commit b2af2f3 into PX4:master Jul 16, 2020
@lukegluke lukegluke deleted the patch-2 branch July 17, 2020 15:00
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.

3 participants