Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-07
11:27 • Ticket [217765ffff] HTTP package leaves sockets open in some error cases. st... artifact: 9dbd9a7467 user: dgp
11:27 • Ticket [217765ffff]: 1 change artifact: bd201148ba user: dgp
2000-10-26
07:35 • Deleted ticket [217765ffff]. artifact: d8feb2a3be user: welch
00:33 • New ticket [217765ffff]. artifact: 09e39bed2f user: nobody

HTTP package leaves sockets open in some error cases.

Deleted217765ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:33:15
OriginalBugID: 5741 Bug
SubmitDate: '2000-05-29'
LastModified: '2000-08-14'
Severity: SER
Status: Released
Submitter: sandeep
ChangedBy: key
OS: All
FixedDate: '2000-06-12'
FixedInVersion: 2.0
ClosedDate: '2000-08-14'


Steps To Reproduce:
1. Run the following script:

package require http
set chanCount [llength [file channels]]
for {set i 0} {$i<200} {incr i} {
    catch {http::geturl [info host]:9876 -timeout 10000}
}
set endChanCount [llength [file channels]]
puts "Open Channel Diff: [expr $endChanCount-$chanCount]"

Expected Result:
0.  There should be no difference.

Actual Result:
200.  All of the connection attempts failed, but the sockets, state array, after events, etc. were never cleared.



This leaks socket handles, pretty serious.
 
-- 05/30/2000 redman

The socket leaking is fixed, and http::wait no longer throws exceptions. 
-- 05/30/2000 sandeep
welch Deleted ticket [217765ffff]. [History diff]2000-10-26 07:35:07
dgp Ticket [217765ffff]: 1 change [History diff]2001-04-07 11:27:24
dgp Ticket [217765ffff]: 2 changes [History diff]2001-04-07 11:27:25
Log in (anonymous is fine) to add a comment.