socket.io-client-java icon indicating copy to clipboard operation
socket.io-client-java copied to clipboard

cannot send large buffers

Open nebeleh opened this issue 7 years ago • 2 comments

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?

nebeleh avatar Mar 27 '18 21:03 nebeleh

have you found any solution for the case?

chamecall avatar Jun 24 '20 16:06 chamecall

it's been a while! I don't remember :)

nebeleh avatar Jun 24 '20 16:06 nebeleh