socket.setRecvBufferSize(size)


设置 SO_RCVBUF 套接字选项。 设置最大套接字接收缓冲区(以字节为单位)。

如果在未绑定的套接字上调用此方法将抛出 ERR_SOCKET_BUFFER_SIZE

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.