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

Cleanup services implementation #88

Merged

Conversation

Yadunund
Copy link
Member

@Yadunund Yadunund commented Dec 27, 2023

This PR fixes

  • zenoh panicing when client callback executes
  • symbol error when destroying server
  • memory allocation and leaks

@Yadunund Yadunund mentioned this pull request Dec 27, 2023
7 tasks
Signed-off-by: Yadunund <[email protected]>
@Yadunund Yadunund force-pushed the yadu/cleanup_services branch from 4bbfd3c to cbb8e16 Compare December 27, 2023 13:36
@Yadunund Yadunund merged commit e181435 into francocipollone/service_support_via_queryable Dec 27, 2023
5 checks passed
@delete-merged-branch delete-merged-branch bot deleted the yadu/cleanup_services branch December 27, 2023 13:48
@francocipollone
Copy link
Collaborator

Thanks! 🚀

Yadunund added a commit that referenced this pull request Dec 28, 2023
* Rely on channels for sending requests

Signed-off-by: Yadunund <[email protected]>

* Revert to callback for client with fixes

Signed-off-by: Yadunund <[email protected]>

* Cleanup service cb

Signed-off-by: Yadunund <[email protected]>

* Style

Signed-off-by: Yadunund <[email protected]>

* Cleanup comments

Signed-off-by: Yadunund <[email protected]>

---------

Signed-off-by: Yadunund <[email protected]>
Yadunund added a commit that referenced this pull request Jan 12, 2024
* Adds base support for services.

Signed-off-by: Franco Cipollone <[email protected]>

* Addresses Yadu's comments.

Signed-off-by: Franco Cipollone <[email protected]>

* Addresses Yadu's comments.

Signed-off-by: Franco Cipollone <[email protected]>

* Fixes memory leak.

Signed-off-by: Franco Cipollone <[email protected]>

* Removes unnecessary declaration.

Signed-off-by: Franco Cipollone <[email protected]>

* Cleanup services implementation (#88)

* Rely on channels for sending requests

Signed-off-by: Yadunund <[email protected]>

* Revert to callback for client with fixes

Signed-off-by: Yadunund <[email protected]>

* Cleanup service cb

Signed-off-by: Yadunund <[email protected]>

* Style

Signed-off-by: Yadunund <[email protected]>

* Cleanup comments

Signed-off-by: Yadunund <[email protected]>

---------

Signed-off-by: Yadunund <[email protected]>

* Use anynomous space instead of static functions.

Signed-off-by: Franco Cipollone <[email protected]>

* Fix style.

Signed-off-by: Franco Cipollone <[email protected]>

* Use zero_allocate where needed.

Signed-off-by: Franco Cipollone <[email protected]>

* Use a scope_exit to drop the keystr.

This just makes sure we always clean it up.

Signed-off-by: Chris Lalancette <[email protected]>

* Rename find_type_support to find_message_type_support.

Signed-off-by: Chris Lalancette <[email protected]>

* Add error checking into ros_topic_name_to_zenoh_key

Signed-off-by: Chris Lalancette <[email protected]>

* Make sure to always free response_bytes.

Signed-off-by: Chris Lalancette <[email protected]>

* Remove unnecessary TODO comment.

Signed-off-by: Chris Lalancette <[email protected]>

* Remember to free request_bytes.

Signed-off-by: Chris Lalancette <[email protected]>

* Small change to take requests from the front of the deque.

Signed-off-by: Chris Lalancette <[email protected]>

* Initial work for attachments and sequence numbers.

Signed-off-by: Chris Lalancette <[email protected]>

* Add in error checking for getting attachments.

Signed-off-by: Chris Lalancette <[email protected]>

* More error checking for attachments.

Signed-off-by: Chris Lalancette <[email protected]>

* Further cleanup.

Signed-off-by: Chris Lalancette <[email protected]>

* Remove unnecessary (and incorrect) copy of sequence_number

Signed-off-by: Chris Lalancette <[email protected]>

* Style

Signed-off-by: Yadunund <[email protected]>

---------

Signed-off-by: Franco Cipollone <[email protected]>
Signed-off-by: Yadunund <[email protected]>
Signed-off-by: Chris Lalancette <[email protected]>
Co-authored-by: Yadu <[email protected]>
Co-authored-by: Chris Lalancette <[email protected]>
Yadunund added a commit that referenced this pull request Jan 12, 2024
* Adds base support for services.

Signed-off-by: Franco Cipollone <[email protected]>

* Addresses Yadu's comments.

Signed-off-by: Franco Cipollone <[email protected]>

* Addresses Yadu's comments.

Signed-off-by: Franco Cipollone <[email protected]>

* Fixes memory leak.

Signed-off-by: Franco Cipollone <[email protected]>

* Removes unnecessary declaration.

Signed-off-by: Franco Cipollone <[email protected]>

* Cleanup services implementation (#88)

* Rely on channels for sending requests

Signed-off-by: Yadunund <[email protected]>

* Revert to callback for client with fixes

Signed-off-by: Yadunund <[email protected]>

* Cleanup service cb

Signed-off-by: Yadunund <[email protected]>

* Style

Signed-off-by: Yadunund <[email protected]>

* Cleanup comments

Signed-off-by: Yadunund <[email protected]>

---------

Signed-off-by: Yadunund <[email protected]>

* Use anynomous space instead of static functions.

Signed-off-by: Franco Cipollone <[email protected]>

* Fix style.

Signed-off-by: Franco Cipollone <[email protected]>

* Use zero_allocate where needed.

Signed-off-by: Franco Cipollone <[email protected]>

* Use a scope_exit to drop the keystr.

This just makes sure we always clean it up.

Signed-off-by: Chris Lalancette <[email protected]>

* Rename find_type_support to find_message_type_support.

Signed-off-by: Chris Lalancette <[email protected]>

* Add error checking into ros_topic_name_to_zenoh_key

Signed-off-by: Chris Lalancette <[email protected]>

* Make sure to always free response_bytes.

Signed-off-by: Chris Lalancette <[email protected]>

* Remove unnecessary TODO comment.

Signed-off-by: Chris Lalancette <[email protected]>

* Remember to free request_bytes.

Signed-off-by: Chris Lalancette <[email protected]>

* Small change to take requests from the front of the deque.

Signed-off-by: Chris Lalancette <[email protected]>

* Initial work for attachments and sequence numbers.

Signed-off-by: Chris Lalancette <[email protected]>

* Add in error checking for getting attachments.

Signed-off-by: Chris Lalancette <[email protected]>

* More error checking for attachments.

Signed-off-by: Chris Lalancette <[email protected]>

* Further cleanup.

Signed-off-by: Chris Lalancette <[email protected]>

* Remove unnecessary (and incorrect) copy of sequence_number

Signed-off-by: Chris Lalancette <[email protected]>

* Style

Signed-off-by: Yadunund <[email protected]>

---------

Signed-off-by: Franco Cipollone <[email protected]>
Signed-off-by: Yadunund <[email protected]>
Signed-off-by: Chris Lalancette <[email protected]>
Co-authored-by: Yadu <[email protected]>
Co-authored-by: Chris Lalancette <[email protected]>
@nkoenig nkoenig mentioned this pull request Jan 16, 2024
4 tasks
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