.NET binding: Socket.Send behavior is unexpected
CCRcmcpe opened this issue · comments
libzt/src/bindings/csharp/Socket.cs
Lines 297 to 322 in 2f0f25a
size
parameter is just... ignored. Sure this would not be surprising.
Yes you are correct. I think size
should replace (uint)Buffer.ByteLength(buffer)
. If you want to make a PR I'll merge it, otherwise I can do it.
@joseph-henry This bug still exists, it will send the entire buffer if offered, which really confuses most clients, especially if you have a large storage buffer used.... Can send kB or more.
https://github.com/zerotier/libzt/blob/main/src/bindings/csharp/Socket.cs#L321