From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,c81c44db6f5a1551 X-Google-Attributes: gidfee84,public From: donn@u.washington.edu (Donn Cave) Subject: Re: wu-ftpd stale processes under Dunix 3.2C Date: 1996/01/10 Message-ID: #1/1 X-Deja-AN: 134773930 references: <4cug7m$3f1@caesar.ultra.net> organization: University of Washington newsgroups: comp.unix.osf.osf1 In article <4cug7m$3f1@caesar.ultra.net>, u-jon@theseus.ultranet.com (Jon Hartford) wrote: | On our Dec Alpha machines, 3000/300 with 2.1 3000/300 with 3.2C and a 200 | 4/233 running 3.2C we get wu-ftpd processes that never terminate. There's a problem in ftpd that can be fixed by adding a select() with timeout before its accept(). Basically some connections can trick ftpd into jumping into an accept() just before they disconnect, and it will hang forever; the effects include many open connections and very high mbuf allocation. It's not specific to wu-ftpd, I think most ftpds including the 3.2C one have the same code. (Nor is it specific to ftpd on 3.2C, it will happen on Ultrix too for example.) I got a patch some time ago for wu-ftpd, courtesy of Casper Dik, and it's obvious how to apply it to DEC's ftpd if you have source. Both DEC and the wu-ftpd people know about this, but I guess there's no organizational structure to apply a fix in either case. It's a fairly trivial job, but if anyone wants it I may be able to dig up a patch against some version of ftpd. I don't know for sure if this is the same problem you're seeing. In the case I saw, most of the connections were in some state other than established. We have a fairly heavy ftp load, and with this problem we were crashing more than once per week, as the mbuf allocation climbed past the point the OS could support. Donn Cave, University Computing Services, University of Washington donn@u.washington.edu