The client disconnects. The new connection diconnects till I restart the application. Does the server conform the RFC2616 section-14.11 ?
Hi I am using the VPS on JP. I do believe The VPS has a fast stable connection to the API access point. I use the binance-connector-java 3.4.1
I see the java.io.EOFException from time to time. The similar issue is discussed here https://github.com/square/okhttp/issues/6718 and here https://github.com/square/okhttp/issues/3646
It looks like the server has an issue described in this post https://github.com/square/okhttp/issues/6718#issuecomment-885551930
Question: May I ask you to check and confirm that your server conforms RFC2616 , please? Especially, the Content-Encoding header is only allowed to be sent when a body is available or Content-Length > 0.
Regards,
2025-04-12 18:06:15.465 | ERROR | OkHttp https://fstream.binance.com/... | c.b.c.f.c.utils.WebSocketConnection - [Connection 26] Failure java.io.EOFException: null at okio.RealBufferedSource.require(RealBufferedSource.kt:202) at okio.RealBufferedSource.readFully(RealBufferedSource.kt:276) at okhttp3.internal.ws.WebSocketReader.readMessage(WebSocketReader.kt:274) at okhttp3.internal.ws.WebSocketReader.readMessageFrame(WebSocketReader.kt:236) at okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.kt:106) at okhttp3.internal.ws.RealWebSocket.loopReader(RealWebSocket.kt:293) at okhttp3.internal.ws.RealWebSocket$connect$1.onResponse(RealWebSocket.kt:195) at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at java.base/java.lang.Thread.run(Thread.java:1583)