websocket-sharp icon indicating copy to clipboard operation
websocket-sharp copied to clipboard

Stack Overflow

Open daviaudcervval opened this issue 1 year ago • 3 comments

Hello, It's very simple to reproduce. Just create a server and a client and send a byte array of 100MB from the server to the client (100MB it's a random size choosen, it juste have to be a large byte array around 10 MB or more)

image

.net 6 or .net 8 same error occurs. I'm using visual studio 2022.

daviaudcervval avatar Mar 27 '24 14:03 daviaudcervval

Hello, I deal with the same problem, did you find a solution for this error ? If you found it. please let me know how. Thank you

Khawla-El-Mazougui avatar Jul 04 '24 10:07 Khawla-El-Mazougui

Hi, I didn't have much time to work on it sadly. I used a workaround, by limiting the data transfer rate using an asynchronous function (you can also use a thread) that controls que quantity of data send per seconds, split the byte array to send in smaller ones, and reassemble the complete array client side. But at the end i came back to .net 4.8 to get rid of any problems, and because it was no relevant for me to use .net 6 and more.

daviaudcervval avatar Jul 04 '24 15:07 daviaudcervval