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

Skip to content

Conversation

@arthur-proglove
Copy link
Contributor

Raise an exception in the infinite loop of get_services if the field Connected is not found in the properties.

Sometimes we can get stuck in this loop if the connection drops between the connect and the service discovery.

Either we should raise an exception there or return and raise it in the caller.

@hbldh hbldh self-assigned this Aug 24, 2019
@hbldh hbldh added the Backend: pythonnet Issues or PRs relating to the .NET/pythonnet backend label Aug 24, 2019
@hbldh hbldh added this to the v0.5.1 milestone Aug 24, 2019
Copy link
Owner

@hbldh hbldh left a comment

Choose a reason for hiding this comment

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

This wil cancel the connection attempt on the first time the properties["Connected"] is False, making the while loop unncecessary, right? I am not sure I want to throw the connection attempt away the first time this happens. Make the loop go for say 3-5 seconds before rasing the error and I am fine with merging this.

@arthur-proglove
Copy link
Contributor Author

Good point, I added a 5 seconds timeout before failing.

@hbldh hbldh merged commit dab88be into hbldh:develop Sep 7, 2019
@arthur-proglove arthur-proglove deleted the fix/get_services branch September 9, 2019 12:29
hbldh added a commit that referenced this pull request Oct 9, 2019
Bugfixes and improvements of client behaviour.

Merged #117
Merged #99
Merged #100
Fixes #101
Fixes #98
Fixes #104
Further fixes for #69, #83 and #86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backend: pythonnet Issues or PRs relating to the .NET/pythonnet backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants