C
cj
VB 2003
I have a programs that accepts TCPIP requests and processes them. A
thread is created to handle each TCPIP connection. Part of handling the
request is involves making a webrequest.
webReq = Net.HttpWebRequest.Create(URL)
webReq.Timeout = 60000
webResp = webReq.GetResponse
This has been working fine for 6 months or more handling maybe 50
simultaneous requests but now the traffic has picked up substantially.
It might be handling 150 requests simultaneously. I'm beginning to get
exceptions thrown making the web request. I get either of these
The operation has timed-out.
The underlying connection was closed: The request was canceled.
The operation has timed-out exception is probably because it went over 1
minute and I have to have some sort of timeout because the TCPIP request
I got initially is waiting on it's reply and will not wait for long.
I don't know if the second exception is something I can do anything
about or if it is web server related. Any ideas?
I have a programs that accepts TCPIP requests and processes them. A
thread is created to handle each TCPIP connection. Part of handling the
request is involves making a webrequest.
webReq = Net.HttpWebRequest.Create(URL)
webReq.Timeout = 60000
webResp = webReq.GetResponse
This has been working fine for 6 months or more handling maybe 50
simultaneous requests but now the traffic has picked up substantially.
It might be handling 150 requests simultaneously. I'm beginning to get
exceptions thrown making the web request. I get either of these
The operation has timed-out.
The underlying connection was closed: The request was canceled.
The operation has timed-out exception is probably because it went over 1
minute and I have to have some sort of timeout because the TCPIP request
I got initially is waiting on it's reply and will not wait for long.
I don't know if the second exception is something I can do anything
about or if it is web server related. Any ideas?