How long is NetworkStream.Write blocked?

I can think of these possible answers:

  • Until data is written to some internal buffer in the IP stack.
  • Until the data is sent by cable.
  • No acknowledgment has yet been received from another machine.
+3
source share
2 answers

Until the data is sent to the send buffer on the sender side. Therefore, if the buffer is full, it is blocked.

The send buffer may be full if it is not yet transmitting data due to network problems or because the receive buffer is full on the receiver side.

, : , - , - .

, , . , SenderSendBuffer + ReceiverReceiveBuffer.

+2

NetworkStream . , NetworkStream.Write . MSDN :

, . , .

?

0

All Articles