Until when does NetworkStream.Write block?
问题 I can think of these possible answers: Until the data is written to some internal buffer in the IP stack. Until the data is sent over the wire. Until a confirmation of reception is received from the other machine. 回答1: Until data is written to the send buffer on the sender side. So if buffer is full, it will block. The send buffer can be full if it didn't transmit data yet, because of network issues or because receive buffer is full on the receiver side. There is an experiment you can conduct