Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-23
03:13 • Ticket [218838ffff] Tcl error with socket under Win NT status still Closed w... artifact: 25c088cb1b user: dgp
2000-10-26
08:30 • Closed ticket [218838ffff]. artifact: 19e4929d57 user: welch
01:06 • New ticket [218838ffff]. artifact: 49738bd72a user: nobody

Tcl error with socket under Win NT

Closed / Fixed218838ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:06:24
OriginalBugID: 2329 Bug
Version: 8.1.1
SubmitDate: '1999-07-06'
LastModified: '1999-07-21'
Severity: CRIT
Status: Released
Submitter: techsupp
ChangedBy: redman
RelatedBugIDs: 2256 2259 2323 2178 2355
OS: Windows NT
Machine: X86
FixedDate: '1999-07-21'
FixedInVersion: 8.2b1
ClosedDate: '2000-10-25'


Name:
Martin Conrad

CustomShell:
no

ReproducibleScript:
I developed 2 scripts. They are for testing only and have no further sense.

To start the scripts, you need two command windows. In one, type

tclsh81 cmdserver.tc 4711

In the other, type

tclsh81 cmdclient.tc 4711

where  4711 is the port number. You can use any free port number, 4711 is only one example.

Here the two scripts:

----------------------------------------------------- CmdServer.tc:

proc service {fdx host port} {
puts "fd=$fdx, connect from $host:$port"
close $fdx
}
set X 1
set fd [socket -server service [lindex $argv 0]]
vwait X

----------------------------------------------------- CmdClient.tc:

set fd [socket localhost [lindex $argv 0]]
after 5000 {
set X 1
}
vwait X
close $fd

-----------------------------------------------------

ObservedBehavior:
The service proc will not run after starting the client.

DesiredBehavior:
The service proc should output "fd=sockxx, connect from yyyyy:nnnn", where xx is a number,
yyyyy is the ip address of the client computer, and nnnn is the given port number.

Best regards,

Martin



Fixed in 8.2b1 by rolling code back to 8.1.0, fixed in 8.2b2 with new socket implementation. 
-- 07/21/1999 redman
welch Closed ticket [218838ffff]. [History diff]2000-10-26 08:30:13
dgp Ticket [218838ffff]: 3 changes [History diff]2001-04-23 03:13:55
Log in (anonymous is fine) to add a comment.