HttpWebRequest times out on second call

后端 未结 8 552
猫巷女王i
猫巷女王i 2020-11-29 03:45

Why does the following code Timeout the second (and subsequent) time it is run?

The code hangs at:

using (Stream objStream = request.GetResponse().Ge         


        
8条回答
  •  爱一瞬间的悲伤
    2020-11-29 04:22

    I had the same issue, and I resolved it ensuring I call the Abort() method on each of the request object created.

提交回复
热议问题