.NET Does NOT Have Reliable Asynchronouos Socket Communication?

后端 未结 5 1547
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-13 11:30

I once wrote a Crawler in .NET. In order to improve its scalability, I tried to take advantage of asynchronous API of .NET.

The System.Net.HttpWebRequest has asynch

5条回答
  •  执笔经年
    2020-12-13 12:01

    This is happening when you use async Send (BeginSend) method of a socket. If you use your own custom threadpool, and send the data over thread with synched Send method is mostly solving this problem. Tested and proved.

提交回复
热议问题