From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,9a31c0a2335381b9 X-Google-Attributes: gidfee84,public From: donn@u.washington.edu (Donn Cave) Subject: Re: Not enought mbufs?!? Date: 1995/09/20 Message-ID: <43phn1$e4a@nntp5.u.washington.edu>#1/1 X-Deja-AN: 110448728 references: <43mu75$g2i@pluto.htl-bw.ch> <43nnfh$ri0@nntp5.u.washington.edu> <43oba0$pv8@news.service.uci.edu> organization: University of Washington nntp-posting-user: donn newsgroups: comp.unix.osf.osf1 iglesias@draco.acs.uci.edu (Mike Iglesias) writes: |In article <43nnfh$ri0@nntp5.u.washington.edu>, |Donn Cave wrote: |> May also be a network service that isn't closing properly, in which case |> the kernel fix will only reduce the number of times per week. With us, it |> was ftpd. Run ``netstat -an'' some time after you have been running a day |> or two, see if you have many connections in some moribund state. If it's |> ftpd, the connections will involve ports 23 and 21. | | Port 23 is telnet; you want to look for 20 and 21. Oops, thanks, that's true. | If a connection between two systems is broken for some reason, and your | system has some data queued up to go to the other system, it's going to | stay there until your system can contact the other system. That's why TCP | is "reliable" - it's going to try to get that data delivered until | something says give up. | | This happens on most of the systems we run here (Digital Unix, Ultrix, | SunOS, Solaris). Right, but I believe the problem is not exactly this kind of broken connection. Rather, it's a protocol problem, where certain clients (I heard NetScape singled out here) fail to follow through with the expected second connect, and leave the daemon hanging in accept(), which evidently holds the connection on line indefinitely. The fix is to insert a select() with 2 minute timeout before the accept(), and believe me it makes a big difference on a heavily used anonymous ftp site. The patch I got (from Casper Dik) was for the wuarchive ftpd, but works as well for DEC's. Donn Cave, University Computing Services, University of Washington donn@u.washington.edu