HP3000-L Archives

February 1996, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Bruce Toback <[log in to unmask]>
Reply To:
Bruce Toback <[log in to unmask]>
Date:
Tue, 6 Feb 1996 08:25:34 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (33 lines)
At  5:24 PM 2/5/96 -0800, Dan Hollis wrote:
>What is bizarre is that if there's a pending FREAD, IOWAIT will *STILL
>RETURN READ SOCKET DATA*, but it *WON'T RETURN SOCKET DISCONNECTS*. It's
>like pending FREADS block any IPC errors from being returned.
 
This may be the source of some interesting (grrr) problems I'm seeing.
Thanks for the tip. By the way, if you get anything from HPRC on this, I'd
like to know about it. The person handling my problem -- which is that soft
interrupts interact badly with nowait I/O on sockets when a socket error is
pending -- gave me a workaround that would have broken the program
completely. I had to explain the function of FCONTROL 48 to him as well as
C syntax for creating function pointers. I'm not hopeful for a solution at
my end.
 
>My temporary solution is to set a 1 second read timeout on the socket, and
>then do an IPCCheck on the socket descriptor on every read timeout. Totally,
>utterly hokey, and it sucks. But until HPRC finds a solution, it's the only
>band-aid I've got. ;(
 
Since you only care about disconnects, why not lengthen the timeout?
Checking every 10 or even 60 seconds seems like it would be adequate,
unless you're doing some kind of processing with the exact time of
disconnection.
 
-- Bruce
 
---------------------------------------------------------------------------
Bruce Toback    Tel: (602) 996-8601| My candle burns at both ends;
OPT, Inc.            (800) 858-4507| It will not last the night;
11801 N. Tatum Blvd. Ste. 142      | But ah, my foes, and oh, my friends -
Phoenix AZ 85028                   | It gives a lovely light.
[log in to unmask]                 |     -- Edna St. Vincent Millay

ATOM RSS1 RSS2