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