"tsnet (1) Received HTTP/0.9 when not allowed"?

Charles Warwick charles at techstrategies.com.au
Wed Mar 31 23:25:05 EDT 2021


Hi Richard,

The curl version that is used in tsNet is regularly updated.  The latest version of tsNet is using curl 7.74.0.

My understanding of that particular issue is that if the first data line that is received back from the HTTP server doesn't match an appropriate response, it will assume HTTP/0.9.

Is there a test URL you can post that shows this problem so I can see what is coming back from the server?  Can you post what you are getting in the libURL debug?

Also, have you tried a version of LC that has a different version of tsNet included - just in case this happens to be a new bug in the curl library.

Thanks,

Charles

> On 1 Apr 2021, at 10:37 am, Richard Gaskin via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Matthias wrote:
> 
>> was there a change in the configuration of your web server recently?
>> Is your web service using php or LC server?
> 
> LC Server.  Hosting likely had changes, since this app has been in production for a long time without issue.
> 
> I believe the change most significant here is business success: Dreamhost apparently has a lot of customers and runs pretty packed shared servers  these days (reason #48 why I prefer VPSes). I'm guessing part of this is a noisy neighbor problem.
> 
> But I'd guess at least some of this is the interaction between Dreamhost's resource quotas and LC's wasteful boot process, in which most of the resources it consumes are for font init that I'd guess 99.9% of server scripts never need:
> https://quality.livecode.com/show_bug.cgi?id=14115
> 
> Another contributing factor may be the curl version tsNet has embedded. Some of the discussions I came across reference older curl versions that assume HTTP 0.9 by default and misreport that under certain error conditions if header info isn't parsed just so.
> 
> Is tsNet's curl version documented somewhere?
> Does LC keep tsNet updated with the latest curl with each release?
> 
> 
>> I am not sure if this is of help, but there is a debug stack
>> available for tsNET. Maybe the debug information gives you
>> some more information.
>> https://downloads.techstrategies.com.au/tsnet/debug_liburl.livecode
> 
> Thanks.  It's using libURLSetStatusCallback and libURLSetLogField, so it's more or less like the one I'd already built into my tooling.
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> ____________________________________________________________________
> Ambassador at FourthWorld.com                http://www.FourthWorld.com
> 
> _______________________________________________
> 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