TcpClient.ReceiveBufferSize configures the kernel buffer size for the socket and doesn't really have anything to do with the choice of user buffer size on Receive. Additionally, the sample should be ...
We are seeing a major performance regression when connecting using "localhost" . This use to take less than 1 millisecond, but now takes over 2 seconds. The following snipped replicates the behaviour.