Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTTPWebRequest POST issue

Status
Not open for further replies.

MarkRuse

Programmer
Aug 11, 1999
29
GB
Hi,

When using the HTTPWebRequest object to perform a POST operation, the object under the HTTPWebRequest object called ServicePoint increments its CurrentConnections property. This will increment on every submit of the POST.

Also on this object it has ConnectionLimit set by default to 2. Once you go past this number the software locks and eventually reports a timeout. No matter how I try to get the CurrentConnections back to 0 after my request, the object will still retain the connection. Since I am writing a posting object, the user could be posting hundreds of requests, and I do not want to set the ConnectionLimit upto 999 to get around this issue.

Kind regards


Mark Ruse
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top