#how do i make socket receive specific amount of data
4 messages · Page 1 of 1 (latest)
I'd presume you're appending it to an array or Vec, so what about slicing it after the fact instead...??
that would be ignoring the problem at best
changing from buf = vec![] to buf = [] fixed it and idk why