Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

断连自动重连后卡在WAIT_FOR_COMPLETED #491

Open
bluef opened this issue Aug 31, 2024 · 0 comments
Open

断连自动重连后卡在WAIT_FOR_COMPLETED #491

bluef opened this issue Aug 31, 2024 · 0 comments

Comments

@bluef
Copy link

bluef commented Aug 31, 2024

断连重连成功后就卡住了, 直到kill掉进程重开才能恢复数据接收, 怎么解决呢

{"url": "wss://free-api.shinnytech.com/t/nfmd/front/mobile", "conn_id": "md", "pack": "{"aid": "peek_message"}", "msg": "websocket send data", "time": "2024-08-30T21:02:48.579260+08:00", "level": "debug", "name": "TqApi.TqConnect"}
{"url": "wss://free-api.shinnytech.com/t/nfmd/front/mobile", "conn_id": "md", "current_time": 1725022969.627268, "read_size": 0, "start_read_message": null, "msg": "websocket connection info", "time": "2024-08-30T21:02:49.627286+08:00", "level": "debug", "name": "TqApi.TqConnect"}
{"url": "wss://free-api.shinnytech.com/t/nfmd/front/mobile", "conn_id": "md", "error": "no close frame received or sent", "msg": "websocket connection closed", "time": "2024-08-30T21:02:49.627638+08:00", "level": "debug", "name": "TqApi.TqConnect"}
{"url": "wss://free-api.shinnytech.com/t/nfmd/front/mobile", "conn_id": "md", "msg": "websocket connection connecting", "time": "2024-08-30T21:02:49.627751+08:00", "level": "debug", "name": "TqApi.TqConnect"}
{"url": "wss://free-api.shinnytech.com/t/nfmd/front/mobile", "conn_id": "md", "msg": "websocket reconnected", "time": "2024-08-30T21:02:49.670135+08:00", "level": "debug", "name": "TqApi.TqConnect"}
{"url": "wss://free-api.shinnytech.com/t/nfmd/front/mobile", "status": "WAIT_FOR_COMPLETED", "pack": {"aid": "set_chart", "chart_id": "PYSDK_realtime_ec08d9fdf663e8b39ea359b8741fc13e", "ins_list": "SHFE.rb2501", "duration": 60000000000, "view_width": 5}, "msg": "resend request", "time": "2024-08-30T21:02:49.670514+08:00", "level": "debug", "name": "TqApi.MdReconnect"}
{"url": "wss://free-api.shinnytech.com/t/nfmd/front/mobile", "status": "WAIT_FOR_COMPLETED", "pack": {"aid": "subscribe_quote", "ins_list": "SHFE.rb2501"}, "msg": "resend request", "time": "2024-08-30T21:02:49.670608+08:00", "level": "debug", "name": "TqApi.MdReconnect"}
{"url": "wss://free-api.shinnytech.com/t/nfmd/front/mobile", "conn_id": "md", "pack": "{"aid": "peek_message"}", "msg": "websocket send data", "time": "2024-08-30T21:02:49.670861+08:00", "level": "debug", "name": "TqApi.TqConnect"}
{"url": "wss://free-api.shinnytech.com/t/nfmd/front/mobile", "conn_id": "md", "pack": "{"aid": "set_chart", "chart_id": "PYSDK_realtime_ec08d9fdf663e8b39ea359b8741fc13e", "ins_list": "SHFE.rb2501", "duration": 60000000000, "view_width": 5}", "msg": "websocket send data", "time": "2024-08-30T21:02:49.671104+08:00", "level": "debug", "name": "TqApi.TqConnect"}
{"url": "wss://free-api.shinnytech.com/t/nfmd/front/mobile", "conn_id": "md", "pack": "{"aid": "subscribe_quote", "ins_list": "SHFE.rb2501"}", "msg": "websocket send data", "time": "2024-08-30T21:02:49.671301+08:00", "level": "debug", "name": "TqApi.TqConnect"}
{"url": "wss://free-api.shinnytech.com/t/nfmd/front/mobile", "conn_id": "md", "pack": "{"aid": "peek_message"}", "msg": "websocket send data", "time": "2024-08-30T21:02:49.671459+08:00", "level": "debug", "name": "TqApi.TqConnect"}
{"url": "wss://free-api.shinnytech.com/t/nfmd/front/mobile", "conn_id": "md", "pack": "{"account_id":"","aid":"rsp_login","session_id":"MDSESSION"}\n", "msg": "websocket received data", "time": "2024-08-30T21:02:50.022659+08:00", "level": "debug", "name": "TqApi.TqConnect"}
{"url": "wss://free-api.shinnytech.com/t/nfmd/front/mobile", "status": "WAIT_FOR_COMPLETED", "pack": {"aid": "peek_message"}, "msg": "wait for data completed", "time": "2024-08-30T21:02:50.022939+08:00", "level": "debug", "name": "TqApi.MdReconnect"}
{"url": "wss://free-api.shinnytech.com/t/nfmd/front/mobile", "conn_id": "md", "pack": "{"aid": "peek_message"}", "msg": "websocket send data", "time": "2024-08-30T21:02:50.023215+08:00", "level": "debug", "name": "TqApi.TqConnect"}
{"url": "wss://free-api.shinnytech.com/t/nfmd/front/mobile", "conn_id": "md", "pack": "{"aid":"rtn_data","data":[{"insserve_ready":true}\n,{},{}]}", "msg": "websocket received data", "time": "2024-08-30T21:02:50.793665+08:00", "level": "debug", "name": "TqApi.TqConnect"}
{"url": "wss://free-api.shinnytech.com/t/nfmd/front/mobile", "status": "WAIT_FOR_COMPLETED", "pack": {"aid": "peek_message"}, "msg": "wait for data completed", "time": "2024-08-30T21:02:50.793957+08:00", "level": "debug", "name": "TqApi.MdReconnect"}
{"url": "wss://free-api.shinnytech.com/t/nfmd/front/mobile", "conn_id": "md", "pack": "{"aid": "peek_message"}", "msg": "websocket send data", "time": "2024-08-30T21:02:50.794242+08:00", "level": "debug", "name": "TqApi.TqConnect"}
{"url": "wss://free-api.shinnytech.com/t/nfmd/front/mobile", "conn_id": "md", "pack": "{"aid":"rtn_data","data":[{"ins_list":""}\n,{},{}]}", "msg": "websocket received data", "time": "2024-08-30T21:02:50.860730+08:00", "level": "debug", "name": "TqApi.TqConnect"}
{"url": "wss://free-api.shinnytech.com/t/nfmd/front/mobile", "status": "WAIT_FOR_COMPLETED", "pack": {"aid": "peek_message"}, "msg": "wait for data completed", "time": "2024-08-30T21:02:50.860992+08:00", "level": "debug", "name": "TqApi.MdReconnect"}
{"url": "wss://free-api.shinnytech.com/t/nfmd/front/mobile", "conn_id": "md", "pack": "{"aid": "peek_message"}", "msg": "websocket send data", "time": "2024-08-30T21:02:50.861261+08:00", "level": "debug", "name": "TqApi.TqConnect"}
{"url": "wss://free-api.shinnytech.com/t/nfmd/front/mobile", "conn_id": "md", "pack": "{"aid":"rtn_data","data":[{"quotes":{"SHFE.rb2501":{"instrument_id":"SHFE.rb2501","datetime":"2024-08-30 21:02:51.000000","ask_price10":null,"ask_volume10":null,"ask_price9":null,"ask_volume9":null,"ask_price8":null,"ask_volume8":null,"ask_price7":null,"ask_volume7":null,"ask_price6":null,"ask_volume6":null,"ask_price5":3291,"ask_volume5":252,"ask_price4":3290,"ask_volume4":1187,"ask_price3":3289,"ask_volume3":1116,"ask_price2":3288,"ask_volume2":937,"ask_price1":3287,"ask_volume1":895,"bid_price1":3286,"bid_volume1":213,"bid_price2":3285,"bid_volume2":342,"bid_pric
e3":3284,"bid_volume3":289,"bid_price4":3283,"bid_volume4":374,"bid_price5":3282,"bid_volume5":571,"bid_price6":null,"bid_volume6":null,"bid_price7":null,"bid_volume7":null,"bid_price8":null,"bid_volume8":null,"bid_price9":null,"bid_volume9":null,"bid_price10":null,"bid_volume10":null,"last_price":3287,"highest":3287,"lowest
":3281,"open":3282,"close":"-","average":3284,"volume":23454,"amount":770249890,"open_interest":1355166,"settlement":"-","upper_limit":3463,"lower_limit":3134,"pre_open_interest":1348805,"pre_settlement":3299,"pre_close":3287}}},{"ins_list":"SHFE.rb2501"}\n,{},{}]}", "msg": "websocket received data", "time": "2024-08-30T21:02:51.
192618+08:00", "level": "debug", "name": "TqApi.TqConnect"}
{"url": "wss://free-api.shinnytech.com/t/nfmd/front/mobile", "status": "WAIT_FOR_COMPLETED", "pack": {"aid": "peek_message"}, "msg": "wait for data completed", "time": "2024-08-30T21:02:51.193049+08:00", "level": "debug", "name": "TqApi.MdReconnect"}
{"url": "wss://free-api.shinnytech.com/t/nfmd/front/mobile", "conn_id": "md", "pack": "{"aid": "peek_message"}", "msg": "websocket send data", "time": "2024-08-30T21:02:51.193345+08:00", "level": "debug", "name": "TqApi.TqConnect"}
{"url": "wss://free-api.shinnytech.com/t/nfmd/front/mobile", "conn_id": "md", "pack": "{"aid":"rtn_data","data":[{"quotes":{"SHFE.rb2501":{"datetime":"2024-08-30 21:02:51.500000","ask_volume1":897,"bid_volume1":219,"bid_volume2":348,"bid_volume4":375,"last_price":3286,"volume":23457,"amount":770348470,"open_interest":1355168}}},{},
{}]}", "msg": "websocket received data", "time": "2024-08-30T21:02:51.538845+08:00", "level": "debug", "name": "TqApi.TqConnect"}
{"url": "wss://free-api.shinnytech.com/t/nfmd/front/mobile", "status": "WAIT_FOR_COMPLETED", "pack": {"aid": "peek_message"}, "msg": "wait for data completed", "time": "2024-08-30T21:02:51.539147+08:00", "level": "debug", "name": "TqApi.MdReconnect"}
{"url": "wss://free-api.shinnytech.com/t/nfmd/front/mobile", "conn_id": "md", "pack": "{"aid": "peek_message"}", "msg": "websocket send data", "time": "2024-08-30T21:02:51.539437+08:00", "level": "debug", "name": "TqApi.TqConnect"}
{"url": "wss://free-api.shinnytech.com/t/nfmd/front/mobile", "conn_id": "md", "pack": "{"aid":"rtn_data","data":[{"quotes":{"SHFE.rb2501":{"datetime":"2024-08-30 21:02:52.000000","ask_volume1":896,"bid_volume1":217,"bid_volume3":288,"bid_volume5":572,"last_price":3287,"volume":23461,"amount":770479930,"open_interest":1355167}}},{},
{}]}", "msg": "websocket received data", "time": "2024-08-30T21:02:52.037808+08:00", "level": "debug", "name": "TqApi.TqConnect"}
{"url": "wss://free-api.shinnytech.com/t/nfmd/front/mobile", "status": "WAIT_FOR_COMPLETED", "pack": {"aid": "peek_message"}, "msg": "wait for data completed", "time": "2024-08-30T21:02:52.038098+08:00", "level": "debug", "name": "TqApi.MdReconnect"}
{"url": "wss://free-api.shinnytech.com/t/nfmd/front/mobile", "conn_id": "md", "pack": "{"aid": "peek_message"}", "msg": "websocket send data", "time": "2024-08-30T21:02:52.038375+08:00", "level": "debug", "name": "TqApi.TqConnect"}
{"url": "wss://free-api.shinnytech.com/t/nfmd/front/mobile", "conn_id": "md", "pack": "{"aid":"rtn_data","data":[{"quotes":{"SHFE.rb2501":{"datetime":"2024-08-30 21:02:52.500000","bid_volume1":198,"bid_volume2":349,"bid_volume3":287,"last_price":3286,"volume":23463,"amount":770545660}}},{},{}]}", "msg": "websocket received data", "time
": "2024-08-30T21:02:52.540323+08:00", "level": "debug", "name": "TqApi.TqConnect"}
{"url": "wss://free-api.shinnytech.com/t/nfmd/front/mobile", "status": "WAIT_FOR_COMPLETED", "pack": {"aid": "peek_message"}, "msg": "wait for data completed", "time": "2024-08-30T21:02:52.540615+08:00", "level": "debug", "name": "TqApi.MdReconnect"}
{"url": "wss://free-api.shinnytech.com/t/nfmd/front/mobile", "conn_id": "md", "pack": "{"aid": "peek_message"}", "msg": "websocket send data", "time": "2024-08-30T21:02:52.540889+08:00", "level": "debug", "name": "TqApi.TqConnect"}
{"url": "wss://free-api.shinnytech.com/t/nfmd/front/mobile", "conn_id": "md", "pack": "{"aid":"rtn_data","data":[{"quotes":{"SHFE.rb2501":{"datetime":"2024-08-30 21:02:53.000000","ask_volume3":1118,"ask_volume1":897,"bid_volume1":257,"bid_volume5":573,"volume":23473,"amount":770874340,"open_interest":1355168}}},{},{}]}", "msg": "webs
ocket received data", "time": "2024-08-30T21:02:53.049533+08:00", "level": "debug", "name": "TqApi.TqConnect"}
{"url": "wss://free-api.shinnytech.com/t/nfmd/front/mobile", "status": "WAIT_FOR_COMPLETED", "pack": {"aid": "peek_message"}, "msg": "wait for data completed", "time": "2024-08-30T21:02:53.049825+08:00", "level": "debug", "name": "TqApi.MdReconnect"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant