Skip to content

cannot send large buffers #515

Open
Open
@nebeleh

Description

@nebeleh

I'm trying to send a large byte array from the java client to a node server. It works fine when the byte array size is less than 16MB, but breaks on larger arrays (e.g., 20MB). This issue doesn't exist if I use the javascript client to send a similar buffer. I use this code to create and send the buffer:

byte[] buf = new byte[20000000];
socket.emit("message", buf);

Is this a bug? or is there a solution for this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions