Network library: Is there a limit on the size of a byte array sent to a Client via the write() function?

Two guesses. One is that it relates to your network. Top search hit for TCP 7300 bytes mentions SMB and NetBIOS – see this passage:

Second guess (less likely) – if you periodically get wrong messages of exactly the same length, sometimes that might mean that the same error message is being encoded each time – so the error / error message text is accidentally the message payload, which is why the message is always the same length.

1 Like