Skip to content
⌘ NSIS Forum Archive

how to use inetc not wait for long time

2 posts

yzldni#

how to use inetc not wait for long time

I use

inetc::get /silent "http://$StoragedHost:$StoragedPort/d2/r/hosts" $TEMP\host.txt /end

but wait for so long time

and I use

inetc::get /CONNECTTIMEOUT 3 /RECEIVETIMEOUT3 /silent "http://$StoragedHost:$StoragedPort/d2/r/hosts" $TEMP\host.txt /end

wait for so long time too.

How I can wait 3 seconds return the result, now i wait for so long time to get the return result, thanks ..
Anders#
Why do you need to abort after 3 seconds? If someone is on a bad connection it might take 3 seconds or more to serve a regular request.