madasraka Posted March 31, 2010 Posted March 31, 2010 i have asymptomatic update for my app. IF ini=yes the it will attempt to download version file from my website as: download/read file 1st line and compare line to existing version. If line is greater then existing file version then run updater.exe to replace original executable with downloaded one. Problem is that it takes about 5 seconds if no longer when there is no connection. IS there way to fix timout for inetget or something ? Thanks
tehdon Posted April 1, 2010 Posted April 1, 2010 Working around your question a bit, but it sounds like you're saying if the host cannot connect to your site, InetGet takes too long to return control to the script, correct? Could you try pinging the site and only attempt the update if the ping returned successful? $pingTime = ping("hostname") If($pingTime > 0) Then ;do InetGet stuff EndIf
madasraka Posted April 1, 2010 Author Posted April 1, 2010 (edited) yes it cannot and i need it to be able to cancel if there is no connection in the first place. I did think of Ping example you posted my self but i juss thought there could be another way. Thanks for trying. I guess ill have to add few more lines Edited April 1, 2010 by madasraka
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now