Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ObjectControl not crashing if an object suddenly disconnect from server.#180

Merged
sepast merged 6 commits into
devfrom
feature_NoCrashObjectDisconnect
Dec 11, 2019
Merged

ObjectControl not crashing if an object suddenly disconnect from server.#180
sepast merged 6 commits into
devfrom
feature_NoCrashObjectDisconnect

Conversation

@sepast

@sepast sepast commented Dec 2, 2019

Copy link
Copy Markdown
Contributor

Not trying to do close(*socket) on the socket that has disconnected.

@LukasWikander LukasWikander left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Discussed this in person. uiRecvMonitor causes the crash. Also, Jenkins complains 😢

@sepast

sepast commented Dec 3, 2019

Copy link
Copy Markdown
Contributor Author

Lukas, take a look at this again.
Using vGetState(GSD) in ObjectControl instead of just OBCState in the beginning of the loop.
Seems to work but let's see what Jenkins says.

@sepast sepast requested a review from LukasWikander December 3, 2019 14:45

@LukasWikander LukasWikander left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good! Two small changes, plus whatever Jenkins is complaining about (I'm guessing that you can just run formatSourceFiles.sh)

Comment thread server/src/objectcontrol.c
Comment thread server/src/objectcontrol.c
@sepast

sepast commented Dec 11, 2019

Copy link
Copy Markdown
Contributor Author

When an object suddenly disconnects from the server when ObjectControl is in state RUNNING, CONNECTED or ARMED it disconnects from all other objects and then goes to IDLE.
Maybe we shall send ABORT before disconnecting....?

@sepast sepast closed this Dec 11, 2019
@sepast sepast reopened this Dec 11, 2019
@sepast sepast merged commit 46d1f3d into dev Dec 11, 2019
@victorjarlow victorjarlow deleted the feature_NoCrashObjectDisconnect branch December 5, 2023 12:53
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