Custom Openhab-Cloud -> Connection dropping

Tags: #<Tag:0x00007fc208dea888> #<Tag:0x00007fc208dea770> #<Tag:0x00007fc208dea540>

Everythings works fine Alexa, IFTTT the openhab app. All works great buth when i go and look at my logging i can see its doing drop outs. the server itself is not losing internet connection…

18:55:53.184 [ERROR] [.io.openhabcloud.internal.CloudClient] - Error connecting to the openHAB Cloud instance: {}
io.socket.engineio.client.EngineIOException: xhr poll error
    at io.socket.engineio.client.Transport.onError(Transport.java:63) [bundleFile:?]
    at io.socket.engineio.client.transports.PollingXHR.access$100(PollingXHR.java:26) [bundleFile:?]
    at io.socket.engineio.client.transports.PollingXHR$6$1.run(PollingXHR.java:140) [bundleFile:?]
    at io.socket.thread.EventThread$2.run(EventThread.java:80) [bundleFile:?]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_201]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_201]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_201]
Caused by: java.net.SocketTimeoutException: timeout
    at okio.Okio$4.newTimeoutException(Okio.java:230) ~[?:?]
    at okio.AsyncTimeout.exit(AsyncTimeout.java:285) ~[?:?]
    at okio.AsyncTimeout$2.read(AsyncTimeout.java:241) ~[?:?]
    at okio.RealBufferedSource.indexOf(RealBufferedSource.java:345) ~[?:?]
    at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:217) ~[?:?]
    at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:211) ~[?:?]
    at okhttp3.internal.http1.Http1Codec.readResponseHeaders(Http1Codec.java:189) ~[?:?]
    at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:75) ~[?:?]
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[?:?]
    at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45) ~[?:?]
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[?:?]
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) ~[?:?]
    at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93) ~[?:?]
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[?:?]
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) ~[?:?]
    at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93) ~[?:?]
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[?:?]
    at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:120) ~[?:?]
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[?:?]
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) ~[?:?]
    at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:185) ~[?:?]
    at okhttp3.RealCall$AsyncCall.execute(RealCall.java:135) ~[?:?]
    at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) ~[?:?]
    ... 3 more
Caused by: java.net.SocketException: Socket closed
    at java.net.SocketInputStream.read(SocketInputStream.java:204) ~[?:1.8.0_201]
    at java.net.SocketInputStream.read(SocketInputStream.java:141) ~[?:1.8.0_201]
    at sun.security.ssl.InputRecord.readFully(InputRecord.java:465) ~[?:1.8.0_201]
    at sun.security.ssl.InputRecord.read(InputRecord.java:503) ~[?:1.8.0_201]
    at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:975) ~[?:1.8.0_201]
    at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:933) ~[?:1.8.0_201]
    at sun.security.ssl.AppInputStream.read(AppInputStream.java:105) ~[?:1.8.0_201]
    at okio.Okio$2.read(Okio.java:139) ~[?:?]
    at okio.AsyncTimeout$2.read(AsyncTimeout.java:237) ~[?:?]
    at okio.RealBufferedSource.indexOf(RealBufferedSource.java:345) ~[?:?]
    at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:217) ~[?:?]
    at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:211) ~[?:?]
    at okhttp3.internal.http1.Http1Codec.readResponseHeaders(Http1Codec.java:189) ~[?:?]
    at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:75) ~[?:?]
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[?:?]
    at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45) ~[?:?]
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[?:?]
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) ~[?:?]
    at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93) ~[?:?]
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[?:?]
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) ~[?:?]
    at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93) ~[?:?]
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[?:?]
    at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:120) ~[?:?]
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[?:?]
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) ~[?:?]
    at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:185) ~[?:?]
    at okhttp3.RealCall$AsyncCall.execute(RealCall.java:135) ~[?:?]
    at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) ~[?:?]
    ... 3 more
18:55:53.258 [INFO ] [.io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = 77ca7a3b-0aac-4b61-9905-1669c59dfea8, base URL = http://localhost:8080)
18:55:54.278 [INFO ] [.rest.core.internal.item.ItemResource] - Received HTTP PUT request at 'items/Temperature_19_09/state' for the unknown item 'Temperature_19_09'.
18:55:54.630 [INFO ] [.io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = 77ca7a3b-0aac-4b61-9905-1669c59dfea8, base URL = http://localhost:8080)

How can i resolve this ?

I also have noticed this problem and have so far been unable to resolve it or discover a fix.