Closed pLeminoq closed 5 years ago
Should be fixed with commit openbase/jul@e2778e6a550c9b5931a6622e5120585e666a7148. The problem was that the request went out before the ping. So after the ping responded it would be waited for the request timeout for 15 seconds. Now the ping is performed first and the controller will only answer to it if its middleware is completely active.
Fix confirmed.
This issue is the reason why currently many of the device manager tests fail. The best way to reproduce this issue is by running restRegisteringManyDeviceTest in DalRegisterDeviceTest. It can be seen that between lines 4 and 5, where requesting the status fails, the timeout of 15 seconds runs out. The strange thing about this is that the controller responds to a ping of the remote as seen in line 3 but does not even seem to receive the request data call afterwards. If the controller would receive the method call it should respond as seen in line 7.