puppet-service icon indicating copy to clipboard operation
puppet-service copied to clipboard

Io disconnected and can not recover from it

Open windmemory opened this issue 4 years ago • 4 comments

Here is the log:

23:48:56 VERB EventStreamManager grpcEmit(EVENT_TYPE_HEARTBEAT[1], {"data":"[object Object]"})
23:49:16 VERB EventStreamManager grpcEmit(EVENT_TYPE_HEARTBEAT[1], {"data":"[object Object]"})
23:49:28 WARN Io initWebSocket() close event[1006: ]
23:49:28 VERB Io reconnect()
23:49:28 WARN Io reconnect() will reconnect after 0 s
23:49:28 VERB Io initWebSocket()
23:49:36 VERB Io send() without a connected websocket, eventBuffer.length = 1
23:49:36 VERB EventStreamManager grpcEmit(EVENT_TYPE_HEARTBEAT[1], {"data":"[object Object]"})
23:49:56 VERB Io send() without a connected websocket, eventBuffer.length = 2
23:49:56 VERB EventStreamManager grpcEmit(EVENT_TYPE_HEARTBEAT[1], {"data":"[object Object]"})
23:50:16 VERB Io send() without a connected websocket, eventBuffer.length = 3
23:50:16 VERB EventStreamManager grpcEmit(EVENT_TYPE_HEARTBEAT[1], {"data":"[object Object]"})
23:50:36 VERB Io send() without a connected websocket, eventBuffer.length = 4
23:50:36 VERB EventStreamManager grpcEmit(EVENT_TYPE_HEARTBEAT[1], {"data":"[object Object]"})

Seems like when the Io get disconnected, the connection won't be recovered, and the eventBuffer keep growing.

windmemory avatar Feb 22 '21 11:02 windmemory

Thanks for reporting this issue.

This is known and our oss chat bot is experiencing this problem everyday.

Will investigate it in the following weeks.

huan avatar Feb 22 '21 12:02 huan

Thanks for such fast reply.

I've looked into the code and found that after the initWebSocket() function call, there is no open event triggered, seems pretty weird, maybe this is where we can start the investigation.

windmemory avatar Feb 22 '21 12:02 windmemory

Hi @huan how's this issue going?

windmemory avatar Mar 01 '21 06:03 windmemory

I have not got time to look into it yet.

If we can have a minimum reproducible code, then I believe it will be very easy to be fixed.

huan avatar Mar 01 '21 07:03 huan