System.Net.WebException: The operation has timed out

前端 未结 6 697
一个人的身影
一个人的身影 2021-02-01 04:13

I have a big problem: I need to send 200 objects at once and avoid timeouts.

while (true)
{

    NameValueCollection data = new NameValueCollection();
    data.A         


        
6条回答
  •  Happy的楠姐
    2021-02-01 04:25

    I remember I had the same problem a while back using WCF due the quantity of the data I was passing. I remember I changed timeouts everywhere but the problem persisted. What I finally did was open the connection as stream request, I needed to change the client and the server side, but it work that way. Since it was a stream connection, the server kept reading until the stream ended.

提交回复
热议问题