home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.os.vxworks:1168 comp.unix.bsd:10964 comp.protocols.tcp-ip:5822
- Newsgroups: comp.os.vxworks,comp.unix.bsd,comp.protocols.tcp-ip
- Path: sparky!uunet!seas.smu.edu!burch
- From: burch@seas.smu.edu (Chris Burchett)
- Subject: Help! (75 seconds to connect() after reboot)
- Message-ID: <1993Jan6.191411.4535@seas.smu.edu>
- Sender: news@seas.smu.edu (USENET News System)
- Nntp-Posting-Host: quick_f.seas.smu.edu
- Organization: SMU - School of Engineering & Applied Science - Dallas
- Distribution: usa
- Date: Wed, 6 Jan 1993 19:14:11 GMT
- Lines: 37
-
- Help! I've found a situation in which I'm unsure of the best
- solution. The problem has to do with a 75 second timeout in the
- connect() system call. This occurs after one of two previously
- connected machines is rebooted and an attempt is subsequently
- made to reestablish communication.
-
- I am using TCP/IP via Berkeley sockets to communicate between a Sun
- workstation and an embedded system running VxWorks. After communi-
- cation is established, the embedded system is rebooted. Once the
- reboot is finished an attempt is made to reestablish the connection,
- at which point, the connect() system call on the embedded system is
- unable to reconnect and times out after 75 seconds.
-
- I believe this may happen because the embedded system is using the
- same port number that was used for a connection before the reboot
- occured (while the remote machine still maintains an established
- connection on that port). It appears that (after a reboot) if the
- embedded system attempts to connect() using a port number which was
- not previously connected, the connection is immediately established;
- this is the desired behavior. However, if the embedded system uses
- a port which was previously connected, the connect() system call
- times out after 75 seconds.
-
- Unfortunately, in my application 75 seconds is somewhat too long
- to wait. I have a potential work around, but it seems to be
- sort of a kludge and I felt certain that this problem must be a
- known one with known solutions. (I'm relatively new to NEWS and if
- this is a topic which has already been discussed in depth or I have
- improperly used this service in any way, I appologize.) But if
- someone with insight into this problem would enlighten me on the
- issues involved, or documentation to be studied, or potential
- solutions, I would greatly appreciate the help.
-
-
- Chris Burchett
- email: burch@seas.smu.edu
- voice: (214) 205-8065
-