socket.setRecvBufferSize(size)


设置 SO_RCVBUF socket 选项。 设置 socket 接收 buffer 的最大值,以字节为单位。

This method throws ERR_SOCKET_BUFFER_SIZE if called on an unbound socket.

Sets the SO_RCVBUF socket option. Sets the maximum socket receive buffer in bytes.

This method throws ERR_SOCKET_BUFFER_SIZE if called on an unbound socket.