[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#24805: dpkg: dselect's ftp method doesn't properly close connections related to aborted transfers.



Package: dpkg
Version: 1.4.0.23.2

Suppose we start an upgrade session using dselect's ftp
method from, say, ftp.de.debian.org.  A package file is
being downloaded.  Netstat shows this output with respect
to the debian server:

Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 sobolev.rhein.de:1214   141.76.20.99:36069      ESTABLISHED 
tcp        0      0 sobolev.rhein.de:1213   141.76.20.99:ftp        ESTABLISHED 

Now, press Control-C to interrupt the session.  dselect
asks if I want to retry at once.  Replying yes to this
question and the next one lets dselect open a new
connection to the ftp server.  Nevertheless, the old
connection persist:

Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 sobolev.rhein.de:1216   141.76.20.99:36056      ESTABLISHED 
tcp        0      0 sobolev.rhein.de:1215   141.76.20.99:ftp        ESTABLISHED 
tcp    56328      0 sobolev.rhein.de:1214   141.76.20.99:36069      ESTABLISHED 
tcp        0      0 sobolev.rhein.de:1213   141.76.20.99:ftp        ESTABLISHED 

I guess they should have been closed at this stage.

tlr

-- System Information
Debian Release: 2.0
Kernel Version: Linux sobolev 2.1.108 #21 SMP Wed Jul 8 18:21:06 MEST 1998 i586 unknown

Versions of the packages dpkg depends on:
ii  libc6           2.0.7t-1       The GNU C library version 2 (run-time files)
ii  libstdc++2.8    2.90.29-0.6    The GNU stdc++ library (egcs version)
ii  ncurses3.4      1.9.9g-8.8     Video terminal manipulation - shared librari


--  
To UNSUBSCRIBE, email to debian-dpkg-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: