Old 7th December 2016, 07:55   #1
yzldni
Junior Member
 
Join Date: Mar 2014
Posts: 26
Question 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 ..
yzldni is offline   Reply With Quote
Old 8th December 2016, 02:50   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,811
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.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Tags
inetc, nsis

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump