Xref: utzoo comp.sys.att:7192 comp.protocols.tcp-ip:7927 Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!iuvax!cica!gatech!bbn!bbn.com!ceide From: ceide@bbn.com (Chantal Eide) Newsgroups: comp.sys.att,comp.protocols.tcp-ip Subject: tcp-ip problems on the AT&T 6386 Message-ID: <1921@currant.bbn.com> Date: 4 Aug 89 14:25:34 GMT Organization: BBN Systems and Technologies Corporation Lines: 19 We have an ATT 6386 using Interlan's TCP/IP implementation (version?). We are having some difficulties: 1. getsockname() makes a socket unusable if called after listen() /* works */ /* does not work */ s = socket(...) s = socket(...) bind(s, ...) bind(s, ...) getsockname(s, ...) listen(s, ...) listen(s, ...) getsockname(s, ...) /* s is now unusable */ Any insights anyone? 2. Closing a tcp connection immediately flushes data still in the "pipe". Our application sends a bunch of data, then calls close. The documentation states that by default sockets are set to "linger" for 45 seconds. We even tried explicitely setting linger on [with setsockopt(s, ... SO_LINGER) (or whatever)], to no avail. Has anyone dealt with this before?