🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #10731

Some answers for hanging sockets

#10731
From: Eric C. Pearce
Date: Fri, 03 Feb 1989 12:03
14 lines
1141 bytes
This is a well known bug in OS 3.5 which I also encountered.  It goes way
back to a BSD bug that was fixed long ago and not picked up by Sun OS (or
so the story goes).

I know of know way to keep the machine from hanging, accept not to kill
processes that are blocked on an accept of a Unix domain socket.  I used
to always run a dummy client that would connect to the server before
killing the possibly accepting process.

You can always use Inet domain sockets for local communications.  Only
Unix domain sockets have this bug.  Note that INet domain sockets are
about 50% slower (at least in my application).

     - Ecp.
Technical Details
Message-ID: <8901271411.AA08213@tycho.yerkes.uchicago.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request
From: pearce@tycho.yerkes.uchicago.edu (Eric C. Pearce)
Newsgroups: comp.sys.sun
Subject: Some answers for hanging sockets
Message-ID: <8901271411.AA08213@tycho.yerkes.uchicago.edu>
Date: 3 Feb 89 12:03:06 GMT
Sender: usenet@rice.edu
Organization: Sun-Spots
Lines: 14
Approved: Sun-Spots@rice.edu
Original-Date: Fri, 27 Jan 89 08:11:11 CST
X-Sun-Spots-Digest: Volume 7, Issue 137, message 7 of 11