Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Retry finding the DB Server port twice before giving up. #37
This gives us a chance to find the port if ConnectionManager jumps in slightly too early after a network disconnection. This seems to help when a CDJ drops of the network then comes back.
I find that this is more responsive if I also lower the socket timeout from 10s to 3s in my application, otherwise it will just take a long time to get back on track.
Thanks again for all your analysis and ideas! I am going to close this merge request because I went a slightly different direction with it, but the basic approach of trying more than once when we don’t get an answer right away seems to be the solution! I check the actual value returned as well as the length, added some increasing delay between each attempt, and try up to three times. Hopefully that will be more than robust enough. Please let me know how it works in your environment once I have pushed my changes which close the issue.
I also changed what happens when we lose a device. Instead of putting a