PC <-> UNIX network drop detect

PC <-> UNIX network drop detect

Post by Mike Garzio » Wed, 19 Jul 1995 04:00:00



We've had lots of postings about how to tell if a network connection
is lost, but I don't recall seeing one about detecting on the UNIX
side if a PC peer has closed the connection.  More precisely, if the
PC was turned off, or the application abruptly terminated.  I'm using
TCP/IP virtual circuits.  If I turn off the PC, the UNIX side detects
no error, will still allow writes to the PC (presumably because a
buffer still has room), and a read will block without error (until
the alarm goes off).

I need to use sockets (not tli), I can't use an embedded
application-level protocol (like a heartbeat), and I/O on both sides
should be blocking.  I'd like the UNIX application to get an error
state (or something) from the read() call when the link is lost.
SO_KEEPALIVE doesn't seem to do anything in this case.  I'm using
SunOS 4.1.{2,3,4} on Sparc {2,5,10,20}.  

Any ideas are appreciated.

Mike
--
Mike Garzione                           IEX Corporation

                                        Richardson, TX  75080

 
 
 

1. Wanted: <><><> Unix Specialist <><><>

PERMANENT, FULL-TIME, POSITION.

Attractive Palm Beach County, Florida Location.    MAJOR EMPLOYER.

<><><>  UNIX SPECIALIST <><><>

-- AIX, SCO Preferred
-- Programming Background Preferred
-- Knowledge of INFORMIX  a real plus

FOR CONFIDENTIAL CONSIDERATION, PLEASE CONTACT:
(resumes..in .txt format please..before calls...please)

Richard
ENTERPRISE SOFTWARE STRATEGIES, INC.

Toll-free Voice: 1-800-624-2944
Toll-free Fax:   1-800-470-3751
Voice:            1-561-998-2823
Fax:              1-561-995-0699


2. Wanted: static-link gzip.

3. <><><> MOUNTING EXTENDED PARTITION <><><>

4. need c++ compiler (source?) for university research

5. LILO help <><><><><><>

6. Need XF86config for 1152x900 #9Level12 card.

7. Networking RH5.2 <<<------------------->>> NT4 How???

8. signon after ppp connect

9. <<< Unix Support and Inventory/Purchasing £20-30k >>>

10. <<< Rare Job Oppertunity Unix Systems Programming & Support £35-70k >>>

11. <<< Job Opportunity Unix Support and Inventory/Purchasing £20-30k >>>

12. <Alt>+<key> = <Esc><key> ?