Sign in to follow this  
Followers 0
madasraka

inetget timout ?

3 posts in this topic

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 :(

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by madasraka

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0