LibURL and TSNet in LC Indy

Charles Warwick charles at techstrategies.com.au
Mon Aug 17 19:01:22 EDT 2020


Hi Tom,

If you want to stress test an API using the tsNet library, try adding a:

tsNetLibUrlReuseConnection false

Before issuing the loadUrl commands to see if that makes any difference.

Also note that with tsNet, multiple load URL commands can occur at the same time against a single server, where as without tsNet, I think that  libUrl will wait for one to complete before sending the next one.

So it is also possible that you are hitting the remote server harder when you are using tsNet than with the standard libUrl.

Regards,

Charles

> On 18 Aug 2020, at 8:23 am, Tom Glod via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Thank you sir. That worked.
> 
> I will try to diagnose the difference between the 2 libraries in this
> scenario...... if only to understand why its happening and not get burned
> elsewhere.
> 
> Thanks.
> 
> Tom
> 
> 
> 
> On Mon, Aug 17, 2020 at 4:41 PM Ralph DiMola via use-livecode <
> use-livecode at lists.runrev.com> wrote:
> 
>> Tom,
>> 
>> Your problem with tsNet could be a timeouts. See tsNetSetTimeouts
>> 
>> Disable tsNet:
>> dispatch "revunloadlibrary" to stack tsnetliburl
>> 
>> Enable tsNet:
>> dispatch "revloadlibrary" to stack tsnetliburl
>> 
>> Ralph DiMola
>> IT Director
>> Evergreen Information Services
>> rdimola at evergreeninfo.net
>> 
>> 
>> -----Original Message-----
>> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On
>> Behalf
>> Of Tom Glod via use-livecode
>> Sent: Monday, August 17, 2020 4:32 PM
>> To: How to use LiveCode
>> Cc: Tom Glod
>> Subject: LibURL and TSNet in LC Indy
>> 
>> Hi Folks,
>> 
>> I am  stress testing a rest api using liburl, I will also do TSNET
>> 
>> But when I open my stack in Livecode Indy, the load URL command uses TSNET
>> 
>> Whats funny is that half the requests are failing when it tries to use
>> TSNET. With liburl, 100% success rate using LC Community.
>> 
>> I am also calling a custom liburlcallback handler.
>> 
>> Is there any way to prevent indy from using TSNET by default?
>> 
>> Thanks
>> 
>> Tom
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at 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 at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> 
> 
> -- 
> Tom Glod
> Founder & Developer
> MakeShyft R.D.A (www.makeshyft.com)
> Mobile:647.562.9411
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 





More information about the use-livecode mailing list