Ask a questionAsk a question
 

QuestionHow to reuse client socket by using HttpWebRequest?

  • Monday, November 02, 2009 9:17 AMFujikura Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I'm writing a WebDav client program by C# with HttpWebRequest. This program sends many HTTP requests to WebDav server in short time and encounters WebException like this:
    System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: Only one usage of each socket address (protocol/network address/port) is normally permitte

    This exception lookes to be thrown when client side (the machine this program is running on) sockets are exhausted. 
    How do I reuse client socket by using HttpWebRequest?


    • Moved byeryangMSFTWednesday, November 04, 2009 3:08 AMwrong forum (From:.NET Base Class Library)
    •  

All Replies