websocketpp icon indicating copy to clipboard operation
websocketpp copied to clipboard

[fatal] handle_read_frame error: websocketpp.transport:7 (End of File)

Open phlegx opened this issue 10 years ago • 6 comments

I have developed a websocketpp (version: 0.3.0-alpha4) client (later available version on github) for the websocket_rails server (https://github.com/websocket-rails/websocket-rails).

I have used this client code as reference https://github.com/zaphoyd/websocketpp/blob/master/examples/telemetry_client/telemetry_client.cpp.

Why the connection ends up in this fatal error after some time? This happens after some seconds of no receiving and no sending a message.

[2014-04-23 14:10:57] [application] Connection closed, stopping websocket!
[2014-04-23 14:10:57] [fatal] handle_read_frame error: websocketpp.transport:7 (End of File)
[2014-04-23 14:10:57] [disconnect] Disconnect close local:[1006,End of File] remote:[1006]

phlegx avatar Apr 23 '14 11:04 phlegx

I saw the same thing. Anyone ?

viasat8 avatar Jul 11 '14 16:07 viasat8

Dont know i'm getting the same error connecting to my WebSocketPP Server through my PHP Client @phlegx , @viasat8 have you had any progress on this or did you just move towards JS?

larivierec avatar Nov 08 '15 22:11 larivierec

@viasat8 @larivierec @viasat8 any update on this issue? I am getting this on C++ code. Before raising bug on server side, i just want to be sure about this is not on the client side.

rahul233343 avatar Jun 24 '20 09:06 rahul233343

We are getting the same thing in C++ code, client-side, would be good to have an update.

EDIT: The counter-party acknowledged server-side issues.

aftersought avatar Jul 27 '20 19:07 aftersought

this issue may cause by lacking handle subprotocol, try https://github.com/zaphoyd/websocketpp/blob/master/test/roles/server.cpp#L90

craterone avatar Jun 29 '21 08:06 craterone

i found this issue happend when single account connecting on multi-platform. that clients kick each other offline due to reconnection logic

microjixl avatar Aug 05 '22 08:08 microjixl