Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-09-12
00:31 • Closed ticket [219253ffff]: change socket ports in tests plus 7 other change... artifact: b3d763b632 user: andreas_kupries
2001-09-11
17:30
* The changes below are a fix for [219253]. * tests/socket.test: Removed _most_ instances of har... check-in: ae3d71b80f user: andreas_kupries tags: trunk
05:55 • Ticket [219253ffff] change socket ports in tests status still Open with 4 ot... artifact: 42bf460871 user: andreas_kupries
05:55 • Add attachment 219253.diff.3 to ticket [219253ffff] artifact: 846e470948 user: andreas_kupries
04:57 • Ticket [219253ffff] change socket ports in tests status still Open with 4 ot... artifact: 8d912d82e0 user: andreas_kupries
04:57 • Ticket [219253ffff]: 4 changes artifact: 4bbe780086 user: andreas_kupries
04:57 • Add attachment 219253.diff to ticket [219253ffff] artifact: f67cb3053d user: andreas_kupries
2001-09-10
17:19 • Ticket [219253ffff] change socket ports in tests status still Open with 5 ot... artifact: aa1414e4e2 user: dkf
2001-09-08
06:39 • Ticket [219253ffff]: 1 change artifact: 0673739224 user: andreas_kupries
2001-04-01
01:47 • Ticket [219253ffff]: 1 change artifact: 30fd0ef3fa user: dgp
2001-02-07
22:13 • Ticket [219253ffff]: 1 change artifact: dd73eac3e3 user: dkf
2000-10-26
05:04 • New ticket [219253ffff]. artifact: 51bf57266f user: nobody

change socket ports in tests

Closed / Fixed219253ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 25 years ago
Descriptionplain2000-10-26 05:04:12
OriginalBugID: 5834 RFE
Version: 8.3.1
SubmitDate: '2000-06-06'
LastModified: '2000-06-06'
Severity: LOW
Status: Assigned
Submitter: hobbs
ChangedBy: hobbs
OS: All
FixedDate: '2000-10-25'
ClosedDate: '2000-10-25'


The socket ports should be changed to use a different range of
values (less likely to conflict with other ports), and all use
of port numbers should be parametrized at the top of the tests.
dkf Ticket [219253ffff]: 1 change [History diff]2001-02-07 22:13:34
dgp Ticket [219253ffff]: 1 change [History diff]2001-04-01 01:47:32
andreas_kupries Ticket [219253ffff]: 1 change [History diff]2001-09-08 06:39:39
dkfplain2001-09-10 17:19:30
Logged In: YES 
user_id=79902

It is better to make it so that none of the tests require a
particular port number (you can *never* be sure that any
specific port will be available.)  Instead, create the
server socket on port 0 (i.e. get the OS to assign you an
unused port number) and use [fconfigure] to read off what
port you actually got.  Some tests do this already...
andreas_kupriesplain2001-09-11 04:57:20
Logged In: YES 
user_id=75003

Adding a patch which fixes the problem at least partially.

Some tests (constraint 'doTestsWithRemoteServer') are 
unchanged. They are skipped when running the testsuite 
normally and seem to be designed for a more controlled 
environment. It is assumed that the free ports in this 
environment are known.

Also unchanged right now are 12.1, 12.2, 12.3 and 13.1. 
More thought is needed how to make the port number known to 
both server and client.
andreas_kupriesplain2001-09-11 04:57:21
File Added - 10619: 219253.diff
andreas_kupriesplain2001-09-11 05:55:54
File Added - 10634: 219253.diff.3

Logged In: YES 
user_id=75003

Better patch which eliminates all fixed ports but the ones 
for 'doTestsWithRemoteServer'-tests. With this I consider 
the item as fixed.
andreas_kupriesplain2001-09-12 00:31:05
Logged In: YES 
user_id=75003

Committed to head.
Log in (anonymous is fine) to add a comment.

Attachments: