| Dart Home | PowerTCP Web for ActiveX | Custom Development | Reply | PowerTCP Web for ActiveX Topics | Forums |
| Author | Forum: PowerTCP Web for ActiveX Topic: Timeout = 0 is slower |
| Patrick Ford wincustomize@stardock.com From: Livonia, MI USA Posts: 5 Member Since: 07/23/02 |
posted July 23, 2002 11:36 AM In debugging some connections issues I tried playing around with the timeout parameter. Normally I use Timeout = 30000. I normally get fast connections and data retrieval this way. But some connections seem to timeout. If I set Timeout=0 I don't get the timeout problems and the clients seem to always connect but the retrieval of data is much much slower. So my questions are why do connections work better when timeout = 0 and why is data retreival slower when timeout = 0. |
| Patrick Ford wincustomize@stardock.com From: Livonia, MI USA Posts: 5 Member Since: 07/23/02 |
posted July 23, 2002 11:43 AM Also, when using the timeout = 0 and I'm waiting for the httpCompleted state, if I put a break in the program it seems to fetch the data immediately. Otherwise I may wait several seconds before it completes the request. |
Jon Belanger![]() From: Rome, NY USA Posts: 310 Member Since: 06/10/02 |
posted July 23, 2002 12:17 PM Timeout=0 is used for non-blocking communication. If you set Timeout=0 the Progress event will trigger when data is received, you can check the state in the event, instead of setting up a blocking loop immediately after the call. |
| Patrick Ford wincustomize@stardock.com From: Livonia, MI USA Posts: 5 Member Since: 07/23/02 |
posted August 14, 2002 4:33 PM I understand that. But as an example. The same piece of data can be retrieved in a few seconds if Timeout = 30000, but may take 3 minutes to retrieve the same data if Timeout=0 |
Jon Belanger![]() From: Rome, NY USA Posts: 310 Member Since: 06/10/02 |
posted August 14, 2002 4:41 PM Could you send us a very simple application that demonstrates this problem? What server would I try to access? Thanks. |
| Reply | PowerTCP Web for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|