C# Why doesn't “Flush” force the bytes down the network stream?

前端 未结 4 766
我在风中等你
我在风中等你 2021-01-12 00:04

I have a project where I\'m trying to send a serialized object to the server, then wait for an "OK" or "ERROR" message to come back.

I seem to be

4条回答
  •  盖世英雄少女心
    2021-01-12 00:50

    I believe the real problem here may be that the XmlDeserializer may not return until it has read EOS from the stream. You may need to shutdown the sending stream for output to force this to happen.

提交回复
热议问题