Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #385: Dyslexics retyping hosts file on servers


comp / comp.lang.tcl / bug in http / autoproxy?

SubjectAuthor
o bug in http / autoproxy?saito

1
Subject: bug in http / autoproxy?
From: saito
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Sun, 12 Jan 2025 20:07 UTC
Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: saitology9@gmail.com (saito)
Newsgroups: comp.lang.tcl
Subject: bug in http / autoproxy?
Date: Sun, 12 Jan 2025 15:07:00 -0500
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <vm17d4$1cr2k$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 12 Jan 2025 21:07:01 +0100 (CET)
Injection-Info: dont-email.me; posting-host="1182b279602db009d0b867ba906b0198";
logging-data="1469524"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/l3Klc2PcGKL4/UF7UALG4"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:PXYTvAPwU9LhXta4m7VPPe8ZsQM=
Content-Language: en-US
View all headers

I have a server that stops working now and then. It gets stuck somewhere
and it does not respond to any requests anymore. This is a public facing
server and it receives a lot of bad requests and attacks.

With many puts statements sprinkled here and there, I have traced it
down to this error message:

TCL READ VARNAME
can't read "state(sock)": no such element in array
while executing
"fileevent $state(sock) writable {}

I don't have this line anywhere in my code. But they are present in http
and autoproxy (with version info: http 2.9.1, autoproxy 1.7).

In http, it occurs in http::reset and http::Connect. The one in
http::reset is in a catch statement so it should be OK, but the one in
http::Connect is not, and I suspect this is where the error comes from.

In autoproxy, it occurs in ::autoproxy::tunnel_write, again without a catch.

I am not really familiar with either of these packages. Putting a catch
around these calls seems simple enough but I wonder if an expert can
provide a more robust fix.

1

rocksolid light 0.9.8
clearnet tor