I expected a longer log snippet, on the order of a few dozens of seconds, also because it might have been difficult to determine with sharp precision the exact time in which you saw the "error 39" message on the client. Sorry for not being clear about that. You could send the snippet as a private email to
support@lightstreamer.com, provided that you can identify at least the client involved and the approximate time at which the client received the message.
Can you replicate the issue in a test environment?
About the log shown, we cannot relate the issue with it. Can you confirm that the "error 39" message happened at the exact time of the snippet?
Note that the "internal cause code: 39" messages that you see in the Server log cannot be directly related with the "error 39" message that you see on the client side.
With reference to client library 5.0, you can be notified of the "error 39" by implementing the onServerError callback.
From there, you can force the recovery with a new session by invoking changeStatus appropriately.