WebRequest() question - page 2

To add comments, please log in or register
cbcopy
5
cbcopy  
I was wondering how to increase the request time, that's just what is missing working in my code. I want to send the request to the server every 30 minutes, but the timeout is not obeying. I have already put up "500000 timeout" but keep sending request almost constantly.

int timeout = 500000;

Can anyone solve this for the request to be sent every 30 minutes?
William Roeder
19818
William Roeder  
Do you really expect an answer? We can't see your broken code. There are no mind readers here and our crystal balls are cracked.
  1. cbcopy: int timeout = 500000;

    All you've shown us is a variable. We don't know if you have used in your webRequest call. Also 500K is 6.7 minutes. If the server doesn't answer in 30 seconds, it probably isn't going to.

  2. cbcopy: I want to send the request to the server every 30 minutes,
    A request timeout has nothing to do with resending requests every 30 minutes. Did you program your code to periodically retry?
12
To add comments, please log in or register