[chan available]: TIP 287 patch available

(Printer friendly version)

Thursday I authored TIP 287 which proposes adding a [chan available] command to Tcl 8.5. This command would allow programmers at the Tcl level to introspect how much input is currently buffered & available to be read on a channel.

This command would be very useful to proactively avoid a potential class of DoS attacks on network daemons implementing line-oriented protocols (such as HTTP, SMTP, etc.)

This afternoon I finished my patch to implement the proposed functionality and uploaded it to SourceForge (TCL RFE #1586860).

I expect this TIP to be totally non-controversial and hope that the TCT will vote on it (and accept it! :-) prior to the December 1st feature freeze for Tcl 8.5.

—Michael A. Cleverly

Comments

Matt: [ mail | www | link ]

You are awesome. Keep up the good work.

Mon, 30 Oct 2006, 11:11

Dossy Shiobara: [ mail | www | link ]

Not to rain on your parade or anything, but how does [chan available] differ from [fconfigure channelId -queue] ?

Mon, 30 Oct 2006, 20:58

Michael A. Cleverly: [ mail | www | link ]

Dossy, I haven't encountered a version of Tcl that has an [fconfigure channelId -queue] . It isn't listed in the 8.4 or 8.5 man pages.

powerbook:~/sandbox/bin michael$ ./tclsh8.5
% info patchlevel
8.5a5
% set sock [socket www.tcl.tk 80]
sock5
% fconfigure $sock -queue
bad option "-queue": should be one of -blocking, -buffering, -buffersize, -encoding, -eofchar, -translation, -peername, or -sockname
% fconfigure $sock
-blocking 1 -buffering full -buffersize 4096 -encoding utf-8 -eofchar {{} {}} -translation {auto crlf} -peername {209.17.146.136 tcl.activestate.com 80} -sockname {192.168.1.4 powerbook.home.cleverly.com 51815}

I suppose you could have a custom channel driver extension that implemented a -queue option, but I'm not familiar with (or remembering) one that does...

Mon, 30 Oct 2006, 21:57

Dossy Shiobara: [ mail | www | link ]
$ tclsh
% info patchlevel
8.4.12
% fconfigure stdin -queue
0 0
% fconfigure stdout -queue
0 0
% set fd [socket www.tcl.tk 80]
sock5
% fconfigure $fd -queue
bad option "-queue": should be one of -blocking, -buffering, -buffersize, -encoding,
-eofchar, -translation, -peername, or -sockname
Hmm. I wonder why -queue is available on stdin and stdout, but not file channels returned from [socket].

Tue, 31 Oct 2006, 16:12

Michael A. Cleverly: [ mail | www | link ]
I'm happy to note that a revised version of my tip was accepted in time to be included in Tcl 8.5.

Tue, 05 Dec 2006, 20:57

qqq: [ mail | www | link ]
gymshark leggings ugg outlet uggs outlet coach outlet under armour outlet coach outlet online supra shoes tennessee titans jerseys nike factory coach wallets air jordan qqq

Mon, 27 May 2019, 00:18

Call Girls in Gurgaon: [ mail | www | link ]
Call Girls in Gurgaon
Call Girl Gurgaon
Call Girls Gurgaon
Call Girl in Gurgaon
Gurgaon Call Girls
Gurgaon Call Girl
Gurgaon Escort
Gurgaon Escorts
escort in Gurgaon
escorts in Gurgaon
escorts in Gurgaon
Call Girls in Dwarka
Call Girl Dwarka
Call Girls Dwarka
Call Girl in Dwarka
Dwarka Call Girls
Dwarka Call Girl
Dwarka Escort
Dwarka Escorts
escort in dwarka
escorts in dwarka
escorts in dwarka
Call Girls in Gurgaon
Call Girl Gurgaon
Call Girls Gurgaon
Call Girl in Gurgaon
Gurgaon Call Girls
Gurgaon Call Girl
Gurgaon Escort
Gurgaon Escorts
escort in Gurgaon
escorts in Gurgaon
escorts in Gurgaon
Call Girls in sikanderpur gurgaon
Call Girls in sohna road gurgaon
Call Girls in mg road gurgaon
Call Girls in iffco chowk gurgaon
Call Girls in Haridwar
Call Girls in sushant lok
Call Girls in Gurgaon
Call Girls in Dehradun
Call Girls in electronic city
Call Girls in Noida
call girls in mumbai
plumbing company Toronto
plumbing company Mississauga
quickbooks support phone number
plumbing company Toronto

Tue, 24 Dec 2019, 01:15

spread: [ mail | www | link ]
compare spread betting companies spread betting how it works spread betting website spreadbetting demo spread bet companies points spread

Sun, 07 Jun 2020, 16:21

swisswatch: [ mail | www | link ]
There is one more thing you need to know on the back cover. Rolex Replica Watch has always used a smooth back cover. Except for the rare Sea Dweller and Milgauss, the back cover has a %93Rolex Oyster Original Gas Escape Escape Valve%94. Of course, the probability of buying these two replica watches is almost zero. So when you see a Rolex watch engraved with a text back, it is most likely a watches replicas .

Fri, 12 Jun 2020, 01:33

Rohan: [ mail | www | link ]
Group Group Group Group Group Group Group Group Group Group Group Group Group Group Group Group Group Group Group Group

Sat, 18 Jul 2020, 04:15

alex: [ mail | www | link ]
It's a very useful blog. Thank you for getting a lot of information. 카지노사이트 파워볼사이트 토토사이트 안전놀이터 안전한놀이터 메이저사이트 비아그라구매

Thu, 17 Sep 2020, 02:31

Alex De Jandrio: [ mail | www | link ]
Connect with me read more Get Photos here Solution thread invest time in learning click here read more resume writing check this out read more read more read more check my profile here learn and read my notes

Sun, 18 Oct 2020, 13:54

TECH PAROL: [ mail | www | link ]

Excellent post. I was always checking this blog, and I%92m impressed! Extremely useful info specially the last part, I care for such information a lot. I was exploring this particular info for a long time. Thanks to this blog my exploration has ended.

Thu, 25 Mar 2021, 05:26

Tamara Yeo: [ mail | www | link ]
I saw a lot of website but I believe this one contains something special in it. tucson private detective

Thu, 08 Apr 2021, 02:11

tubi.tv/activate: [ mail | www | link ]
amazon.com/mytv amazon.com/redeem www.amazon.com/mytv.com www.amazon.com/code www.amazon.com/mytv enter code www.amazon.com/mytv www.amazon.com/mytv enter code amazon.com/mytv amazon.com/mytv amazon.com/mytv amazon.com/mytv www.amazon.com/code www.amazon.com/mytv.com www.amazon.com/mytv www.amazon.com/mytv www.amazon.com/mytv amazon.com/mytv www.amazon.com/code garmin map update garmin nuvi update garmin.com/express hulu.com/activate hulu.com/activate hulu.com/activate hulu.com/activate hulu.com/activate hulu.com/activate hulu.com/activate mcafee.com/activate mcafee.com/activate mcafee.com/activate mcafee.com/activate www.amazon.com/mytv amazon.com/code amazon.com/mytv enter my code www.amazon.com/mytv enter code www.amazon.com/mytv login mytv amazon.com/us/code amazon.com/mytv norton.com/setup Norton.com/setup key www.Norton.com/setup pbs.org/activate pbskids.org/activate pbs.org/activate pbs activate amazon.com/redeem amazon.com/redeem amazon.com/redeem roku/link roku.com/link activate code roku.com/link enter code roku.com/link www.roku.com/link www.roku.com/link showtimeanytime/activate showtimeanytime/activate tubi.tv/activate enter code tubi.tv/activate tubi.tv/activate xfinity.com/authorize roku xfinity.com/authorize www.xfinity.com/authorize xfinity.com/authorize xfinity.com/authorize roku trakt.tv/activate nfl.com/activate nfl.com/activate twitch.tv/activate twitch.tv/activate pluto.tv/activate pluto.tv/activate youtube.com/activate www.youtube.com/activate amazon.com/redeem amazon.com/mytv amazon.com/mytv hulu.com/activate netflix.com/activate netflix.com/activate espn.com/activate espn.com/activate espn.com/activate espn.com/activate amazon.com/redeem amazon.com/redeem plex.tv/link plex.tv/link amazon.com/mytv amazon.com/mytv amazon.com/mytv amazon.com/mytv cash app login cash app login

Thu, 08 Apr 2021, 07:30

Gigi Smith: [ mail | www | link ]
I think I've seen this film before developer

Tue, 22 Jun 2021, 18:39

Leave a comment

Name:  
Email: (optional)
URL: (optional)

Your comment: