SIGN IN SIGN UP
socketio / socket.io UNCLAIMED

Realtime application framework (Node.JS server)

0 0 0 TypeScript

[fix] Use workaround for setEncoding bug in node 0.10+ (#527)

The server often crashes with 'TypeError: "list" argument must be an Array of Buffers' errors,
which is caused by a bug in new versions of node, where setEncoding call does not work for messages
that are already in the queue.

This pull request makes sure that concat is never called in the non binary case, even if
setEncoding does not work properly.
H
Harutyun Amirjanyan committed
3dcc2d5cbd1294e7aa3f6351c2554e3a285187f3
Parent: e76e035
Committed by Damien Arrachequesne <damien.arrachequesne@gmail.com> on 8/31/2017, 8:49:18 PM