From owner-freebsd-hackers Mon Mar 29 12: 8:21 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from implode.root.com (root.com [209.102.106.178]) by hub.freebsd.org (Postfix) with ESMTP id C6C3214C19 for ; Mon, 29 Mar 1999 12:08:18 -0800 (PST) (envelope-from root@implode.root.com) Received: from implode.root.com (localhost [127.0.0.1]) by implode.root.com (8.8.8/8.8.5) with ESMTP id MAA09583; Mon, 29 Mar 1999 12:06:11 -0800 (PST) Message-Id: <199903292006.MAA09583@implode.root.com> To: Terry Glanfield Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: FIN not sent on socket close() In-reply-to: Your message of "Mon, 29 Mar 1999 16:57:57 -0000." <9903291557.AA21054@program-products.co.uk> From: David Greenman Reply-To: dg@root.com Date: Mon, 29 Mar 1999 12:06:11 -0800 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >I'm having trouble getting an FTP proxy working on 3.1-STABLE. The >proxy is a PASV aware version of the FTWK ftp-gw. When trying to STOR >a file through the proxy the receiving end hangs waiting for a FIN >packet that is never sent. The ktrace output below shows the socket >being closed. I've also included some short packet traces - sorry >about the line length - and dumps of a pftp session for comparison. > >The only difference I can see is that the proxy is being launched from >inetd. Any help would be greatly appreciated. Source code available >on request. Hmmm, inetd opens the network connection on stdin/stdout/stderr (descriptors 0, 1, and 2) for the server that it execs. If this is the same socket that your application is using, then those would have to be closed, too. -DG David Greenman Co-founder/Principal Architect, The FreeBSD Project To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message