websocketpp icon indicating copy to clipboard operation
websocketpp copied to clipboard

handle_read_frame error

Open cpp77 opened this issue 3 years ago • 4 comments

I left a connection listening to streamed data but returned to find this:

[2022-07-05 12:12:36] [info] asio async_read_at_least error: asio.ssl.stream:1 (stream truncated) [2022-07-05 12:12:36] [error] handle_read_frame error: websocketpp.transport:2 (Underlying Transport Error)

I'm using the FTX (crypto exchange) Github project code:

https://github.com/ftexchange/ftx

cpp77 avatar Jul 05 '22 14:07 cpp77

Did you find a fix for it ?

SapitoSucio avatar Sep 21 '22 04:09 SapitoSucio

Have the same issue

MrTrigger avatar Oct 04 '22 21:10 MrTrigger

FYI I fixed this by spawning a thread to run the websocket client in since that's blocking and you can't handle the messages coming in. So in the FTX client you need to spawn WS::connect() in a separate thread.

MrTrigger avatar Oct 08 '22 15:10 MrTrigger

I'm just reading this in early 2023 and watching the timeline of this thread.

@MrTrigger was running this with FTX and the last fix was posted in 8th Oct 2022. Which was literally the day FTX collapse started, first with halted withdrawals, with them declaring bankruptcy a few days later. That's crazy.

And well, that's a small explainer for future readers who are confused.

sierret avatar Feb 11 '23 13:02 sierret