Artifact
49cd482fb35cda10a953033f27d9bf4a5e4c4d57:
0000: 32 30 30 30 2d 30 35 2d 33 31 20 20 42 72 65 6e  2000-05-31  Bren
0010: 74 20 57 65 6c 63 68 20 3c 77 65 6c 63 68 40 73  t Welch <welch@s
0020: 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09  criptics.com>...
0030: 2a 20 74 6c 73 2e 63 3a 20 43 68 61 6e 67 65 20  * tls.c: Change 
0040: 74 68 65 20 43 68 61 6e 6e 65 6c 48 61 6e 64 6c  the ChannelHandl
0050: 65 72 20 74 6f 20 62 65 20 72 65 67 69 73 74 65  er to be registe
0060: 72 65 64 20 6f 6e 20 74 68 65 20 6d 61 69 6e 0a  red on the main.
0070: 09 63 68 61 6e 6e 65 6c 20 61 73 20 6f 70 70 73  .channel as opps
0080: 65 64 20 74 6f 20 74 68 65 20 22 70 61 72 65 6e  ed to the "paren
0090: 74 22 2c 20 6f 72 20 73 75 70 65 72 63 65 65 64  t", or superceed
00a0: 65 64 2c 20 63 68 61 6e 6e 65 6c 2e 20 20 54 68  ed, channel.  Th
00b0: 69 73 0a 09 69 73 20 62 65 63 61 75 73 65 20 74  is..is because t
00c0: 68 65 20 73 6f 63 6b 65 74 20 64 72 69 76 65 72  he socket driver
00d0: 20 6e 6f 74 69 66 69 65 73 20 74 68 65 20 6d 61   notifies the ma
00e0: 69 6e 20 63 68 61 6e 6e 65 6c 2c 20 61 6e 64 20  in channel, and 
00f0: 74 68 65 72 65 20 61 72 65 0a 09 74 69 6d 65 73  there are..times
0100: 20 77 69 74 68 20 74 68 65 20 6d 61 69 6e 20 63   with the main c
0110: 68 61 6e 6e 65 6c 20 67 65 74 73 20 63 6c 6f 73  hannel gets clos
0120: 65 64 2c 20 62 75 74 20 74 68 65 20 73 75 70 65  ed, but the supe
0130: 72 63 65 64 65 64 20 6f 6e 65 0a 09 69 73 20 6e  rceded one..is n
0140: 6f 74 20 79 65 74 20 63 6c 6f 73 65 64 2e 20 20  ot yet closed.  
0150: 49 66 20 74 68 65 20 63 68 61 6e 6e 65 6c 20 68  If the channel h
0160: 61 6e 64 6c 65 72 20 67 65 74 73 20 74 72 69 67  andler gets trig
0170: 67 65 72 65 64 20 69 6e 20 74 68 69 73 0a 09 68  gered in this..h
0180: 61 6c 66 2d 6f 70 65 6e 20 73 74 61 74 65 20 69  alf-open state i
0190: 74 20 69 73 20 61 73 73 6f 63 69 61 74 65 64 20  t is associated 
01a0: 77 69 74 68 20 74 68 65 20 73 75 70 65 72 63 65  with the superce
01b0: 65 64 65 64 20 63 68 61 6e 6e 65 64 6c 2c 20 62  eded channedl, b
01c0: 75 74 0a 09 75 73 65 73 20 69 74 73 20 70 72 69  ut..uses its pri
01d0: 76 61 74 65 20 70 6f 69 6e 74 65 72 20 74 6f 20  vate pointer to 
01e0: 74 68 65 20 6d 61 69 6e 20 63 68 61 6e 6e 65 6c  the main channel
01f0: 2c 20 77 68 69 63 68 20 69 73 20 6d 6f 73 74 6c  , which is mostl
0200: 79 20 64 65 73 74 72 6f 79 65 64 2e 0a 09 2a 20  y destroyed...* 
0210: 45 6c 69 6d 69 6e 61 74 65 64 20 74 68 65 20 72  Eliminated the r
0220: 65 64 75 6e 64 61 6e 74 20 63 61 6c 6c 20 74 6f  edundant call to
0230: 20 54 63 6c 5f 4e 6f 74 69 66 79 43 68 61 6e 6e   Tcl_NotifyChann
0240: 65 6c 20 66 72 6f 6d 20 54 6c 73 57 61 74 63 68  el from TlsWatch
0250: 50 72 6f 63 0a                                   Proc.