home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / vms / 19728 < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.7 KB  |  63 lines

  1. Newsgroups: comp.os.vms
  2. Path: sparky!uunet!gatech!destroyer!fmsrl7!lynx!uranus.unm.edu!dgalb
  3. From: dgalb@uranus.unm.edu ()
  4. Subject: $QIO hangs...
  5. Message-ID: <shgr_#n@lynx.unm.edu>
  6. Date: Tue, 22 Dec 92 17:21:53 GMT
  7. Organization: University of New Mexico, Albuquerque
  8. Lines: 53
  9.  
  10.  
  11.  
  12. hi,
  13.  
  14. Does anybody know of any reason for a SYS$QIO call to hang???
  15.  
  16. Here is the piece of code:
  17.  
  18.         SUBROUTINE SETUP_AST()
  19.         IMPLICIT        INTEGER(A-Z)
  20.         INCLUDE         'COMMONS.INC'
  21.         INCLUDE         '($IODEF)'
  22.         EXTERNAL        GOT_NETIO
  23.  
  24.         INTEGER*2       C_IOSB(4)
  25.         COMMONS/IOSBSS/ C_IOSB
  26.  
  27.         CALL SYS$QIO(,%VAL(CHAN),%VAL(IO$_READVBLK),C_IOSB,GOT_NETIO,,
  28.         1       %REF(C_BUFFER),%VAL(1),,,,)
  29.  
  30.         RETURN
  31.         END
  32.  
  33. It only hangs every so often... The code preceding the time it hangs
  34. is a QIOW on the same channel until there is nothing left to read, but
  35. that shouldn't hang the QIO.  Also, the channel is opened to a MULTINET
  36. socket created by:
  37.  
  38.     *chan = socket(hp->h_addrtype, SOCK_STREAM, 0);
  39.     ...
  40.  
  41.     if(connect(*chan, &sin, sizeof(sin), 0) < 0) {
  42.     ...
  43.  
  44. After the first call it is always called at AST level.
  45.  
  46. Any ideas on what could cause the qio to hang???  (At least that is what
  47. hangs when it is run with the debugger)  I could duplicate the hang, but
  48. then I moved the data it was reading around (this is a IMAP client, and
  49. before the mail messages were in a certain sequence, and it would hang
  50. everytime... now that I've read my mail and moved things around, it won't
  51. hang on the message any more... I am really lost on this one)
  52.  
  53. ps.
  54. If I didn't include anything needed don't hesitate to mail me and ask
  55. for more info...
  56.  
  57.  
  58. Thanks for your help,
  59. -David Galbraith
  60. dgalb@unm.edu
  61.  
  62. UNM/CIRT
  63.