Subject: | |
From: | |
Reply To: | |
Date: | Fri, 2 Feb 1996 11:26:00 PST |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Howdy all,
I'm experiencing some bizarre IOWAIT problems.
Scenario 1:
-----------
Issue nowait I/O read on socket
Issue nowait I/O read on message file
IOWAIT
Socket I/O completes
Issue nowait I/O read on socket
IOWAIT
Message file I/O completes
(remote host now disconnects)
Socket I/O completes (ccode = 1, so program shuts down)
Scenario 2:
-----------
Issue nowait I/O read on socket
Issue nowait I/O read on message file
IOWAIT
Socket I/O completes
Issue nowait I/O read on socket
IOWAIT
(remote host now disconnects)
...
... minutes pass ...
...
... (IOWAIT never sees the disconnect! It seems to hang forever) ...
...
Message file I/O completes
IOWAIT
Socket I/O completes (ccode = 1, so program shuts down)
Problem : If there are outstanding message file reads, it appears to prevent
socket I/O errors from ever being returned to IOWAIT. The socket I/O never
completes until the message file I/O completes.
Anyone else see this? Solutions? (And *please* don't tell me to use socket
and/or message file read timeouts... I do *NOT* want this thing to poll. =P)
-Dan
.----------------------------------------------.
|Dan Hollis -- Pharmacy Computer Services, Inc.|
[log in to unmask] - (503)476-3139|
`----------------------------------------------'
|
|
|