Event loop blockage
hp8wvvvgnj6asjm7 opened this issue · comments
hp8wvvvgnj6asjm7 commented
Hi,
I am not sure if my problem can be solved by tuning the settings, but I am experiencing delays in data retrieval.
For example there are cases where the event-loop is being blocked
[event-loop-blocked] : 26 ms [
0|test | ' at process.nextTick (internal/process/task_queues.js:135:5)',
0|test | ' at WebSocketConnection.processReceivedData (/root/sys/node_modules/websocket/lib/WebSocketConnection.js:323:13)',
0|test | ' at WebSocketConnection.handleSocketData (/root/sys/node_modules/websocket/lib/WebSocketConnection.js:271:10)',
0|test | ' at TLSSocket.emit (events.js:315:20)',
0|test | ' at addChunk (_stream_readable.js:295:12)',
0|test | ' at readableAddChunk (_stream_readable.js:271:9)',
0|test | ' at TLSSocket.Readable.push (_stream_readable.js:212:10)',
0|test | ' at TLSWrap.onStreamRead (internal/stream_base_commons.js:186:23)'
0|test | ]
There are many small messages being received and sent. But I am more concerned about the receiving part.
I am dealing with proto-buffers and would like to know how to configure the websocket for that.