Ben, One more thing. Function GetNetworkType below will return the network type. The handler NetworkType will report the status and version.
command NetworkType if GetNetworkType() = "Sockets" then answer "tsNet is disabled" else answer "tsNet in use. Version==>"& tsNetVersion() end if end NetworkType function GetNetworkType local tLibUrlDriver try put the behavior of stack"revLibUrl" into tLibUrlDriver end try if tLibUrlDriver is empty then return "Sockets" else return "tsNet" end if end GetNetworkType Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Ben Rubinstein via use-livecode Sent: Sunday, November 07, 2021 4:55 PM To: use-livecode@lists.runrev.com Cc: Ben Rubinstein Subject: Re: How to restrain impatient tsNet? Thanks Mark and Matthias! Ben On 07/11/2021 19:28, matthias rebbe via use-livecode wrote: > Ben, > > i am not sure if you are already aware of this, but in case you ever want to > test your app without tsNet in LC 9.5.x or higher or you want to create it > with LC 9.5.x or higher but without using tsNET you could unload tsNet in LC > IDE before testing or creating the standalone. LC then uses only the > 'standard' libUrl library. > > To disable tsNET execute this in the message box > dispatch "revunloadlibrary" to stack tsnetliburl > > Please keep in mind that you have to unselect tsNet in the Inclusions section > of the standalone builder in case you've set the standalone settings to > manually select the inclusions. > > > To enable tsNET again execute this in the message box > dispatch "revloadlibrary" to stack tsnetliburl > > > Regards, > Matthias > > >> Am 07.11.2021 um 18:50 schrieb Mark Waddingham via use-livecode >> <use-livecode@lists.runrev.com>: >> >> I think tsNetSetTimeouts is what you need :) >> >> Warmest Regards, >> >> Mark >> >> Sent from my iPhone >> >>> On 7 Nov 2021, at 16:51, Ben Rubinstein via use-livecode >>> <use-livecode@lists.runrev.com> wrote: >>> >>> >>> I'm finally moving an app from LC 6.7 to LC 9.6.5 (huge thanks to Mark W >>> for fixing the accumulating/sorting delay loops, which has made this >>> possible). >>> >>> I've hit what I hope is the last hurdle: at one point in its processing, >>> the app has to load a resource over HTTP, which is s.l.o.w. - it typically >>> takes around 8 minutes at the moment. >>> >>> By setting the sockettimeoutinterval to the extreme 1800 (i.e. half an >>> hour) this has been fine. >>> >>> But under 9.6.5, in spite of this setting, it craps out within a minute >>> with the message >>> tsneterr: (28) Operation too slow. Less than 1000 bytes/sec transferred >>> the last 30 seconds >>> >>> Does tsneterr ignore the sockettimeoutinterval? Is there some other >>> property I can set to persuade it to be patient? >>> >>> TIA, >>> >>> Ben >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode@lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode