home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.vms
- Path: sparky!uunet!gatech!destroyer!fmsrl7!lynx!uranus.unm.edu!dgalb
- From: dgalb@uranus.unm.edu ()
- Subject: $QIO hangs...
- Message-ID: <shgr_#n@lynx.unm.edu>
- Date: Tue, 22 Dec 92 17:21:53 GMT
- Organization: University of New Mexico, Albuquerque
- Lines: 53
-
-
-
- hi,
-
- Does anybody know of any reason for a SYS$QIO call to hang???
-
- Here is the piece of code:
-
- SUBROUTINE SETUP_AST()
- IMPLICIT INTEGER(A-Z)
- INCLUDE 'COMMONS.INC'
- INCLUDE '($IODEF)'
- EXTERNAL GOT_NETIO
-
- INTEGER*2 C_IOSB(4)
- COMMONS/IOSBSS/ C_IOSB
-
- CALL SYS$QIO(,%VAL(CHAN),%VAL(IO$_READVBLK),C_IOSB,GOT_NETIO,,
- 1 %REF(C_BUFFER),%VAL(1),,,,)
-
- RETURN
- END
-
- It only hangs every so often... The code preceding the time it hangs
- is a QIOW on the same channel until there is nothing left to read, but
- that shouldn't hang the QIO. Also, the channel is opened to a MULTINET
- socket created by:
-
- *chan = socket(hp->h_addrtype, SOCK_STREAM, 0);
- ...
-
- if(connect(*chan, &sin, sizeof(sin), 0) < 0) {
- ...
-
- After the first call it is always called at AST level.
-
- Any ideas on what could cause the qio to hang??? (At least that is what
- hangs when it is run with the debugger) I could duplicate the hang, but
- then I moved the data it was reading around (this is a IMAP client, and
- before the mail messages were in a certain sequence, and it would hang
- everytime... now that I've read my mail and moved things around, it won't
- hang on the message any more... I am really lost on this one)
-
- ps.
- If I didn't include anything needed don't hesitate to mail me and ask
- for more info...
-
-
- Thanks for your help,
- -David Galbraith
- dgalb@unm.edu
-
- UNM/CIRT
-