Homekit not working properly

@beowulfe

I am also still getting these errors with the latest nightly for OH2. The errors occur for me 100% of the time if I use an iOS device to access/view the “Home” app, then just exit the app. After a while, you will see the stack trace reported here, with “Connection timed out” being the cause. Similarly, if you disconnect your phone from the network shortly after viewing the Home app, you will see the same stack trace but with “Connection reset by peer” as the cause. So I can confirm, at least in my case, that these errors are harmless.

However, these really clutter up the log - since they are logged at ERROR level, there’s no way to get rid of them at all.

I looked at the HAP-Java code repository, and if I’m not mistaken, the issue appears to be fixed there already:

This commit was made in Aug 2016, but it appears it has not made its way to OH2 yet. Is it possible to get the latest version of homebridge/HAP/homekit, or perhaps just this change, merged into OH2?

I don’t see an issue for this in the OH2 issue list, should I create one?