From owner-freebsd-hackers Thu Feb 20 14:49:47 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id OAA12502 for hackers-outgoing; Thu, 20 Feb 1997 14:49:47 -0800 (PST) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id OAA12494 for ; Thu, 20 Feb 1997 14:49:44 -0800 (PST) Received: from hydrogen.nike.efn.org (resnet.uoregon.edu [128.223.170.28]) by who.cdrom.com (8.7.5/8.6.11) with ESMTP id OAA25690 for ; Thu, 20 Feb 1997 14:49:34 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by hydrogen.nike.efn.org (8.8.4/8.8.4) with SMTP id OAA01560; Thu, 20 Feb 1997 14:47:45 -0800 (PST) Date: Thu, 20 Feb 1997 14:47:41 -0800 (PST) From: John-Mark Gurney Reply-To: John-Mark Gurney To: Darren Reed cc: davidn@labs.usn.blaze.net.au, freebsd-hackers@freebsd.org Subject: Re: "connection refused" In-Reply-To: <199702202046.MAA13840@resnet.uoregon.edu> Message-ID: X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Fri, 21 Feb 1997, Darren Reed wrote: > > it seems you can accept() a conntection... verify were it is coming from > > and then close and it will be rejected... as it turns out this isn't > > true... (I just wrote a test program to test it)... > > What about if the socket accept() is using is non-blocking ? nope... still doesn't behave like the man page says... basicly I close the connection immediately after... but I still get: Connected to metriclient-2.uoregon.edu. Escape character is '^]'. Connection closed by foreign host. so the connection is still getting opened all the way... John-Mark gurney_j@efn.org http://resnet.uoregon.edu/~gurney_j/ Modem/FAX: (541) 683-6954 (FreeBSD Box) Live in Peace, destroy Micro$oft, support free software, run FreeBSD (unix)