home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / hp / 10067 < prev    next >
Encoding:
Internet Message Format  |  1992-09-04  |  1.4 KB

  1. Xref: sparky comp.sys.hp:10067 comp.unix.programmer:4543
  2. Path: sparky!uunet!sun-barr!cs.utexas.edu!usc!news!spock.dis.cccd.edu!markb
  3. From: markb@spock.dis.cccd.edu (Mark Bixby)
  4. Newsgroups: comp.sys.hp,comp.unix.programmer
  5. Subject: Sockets, timeouts, and HPUX
  6. Message-ID: <Bu2HJ5.KHA@spock.dis.cccd.edu>
  7. Date: 4 Sep 92 18:47:28 GMT
  8. Organization: Coast Community College District, Costa Mesa, CA
  9. Lines: 19
  10.  
  11. I'm running HPUX 8.02 on a 9000/817.  I'm writing a sockets client that talks to
  12. a remote server machine.  If the server machine is down, the client's
  13. connect(2) call takes 75 seconds to time out.  Is there any way to change this
  14. timeout duration, especially to reduce it to something more reasonable like
  15. 15 seconds?
  16.  
  17. HP's "Berkeley IPC Programmer's Guide" (p/n 98194-60525) lists SO_SNDTIMEO and
  18. SO_RCVTIMEO timeout value options for setsockopt(2), but says "At present, this
  19. option is not used.  It is supported in anticipation of future use".  Sure
  20. enough, setting these options before connect(2) has no effect.
  21.  
  22. So is it possible to change the timeouts for connect(2), send(2), and recv(2),
  23. or do I just have to live with HP's excessive defaults?
  24. -- 
  25. Mark Bixby                         Internet: markb@spock.dis.cccd.edu
  26. Coast Community College District   1370 Adams Avenue
  27. District Information Services      Costa Mesa, CA, USA  92626
  28. Technical Support                  (714) 432-5064
  29. "You can tune a file system, but you can't tune a fish." - tunefs(1M)
  30.