From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10872d,d4c1f7c0fe672a4 X-Google-Attributes: gid10872d,public X-Google-Thread: fcda7,d4c1f7c0fe672a4 X-Google-Attributes: gidfcda7,public X-Google-Thread: 1020c6,d4c1f7c0fe672a4 X-Google-Attributes: gid1020c6,public X-Google-Thread: 1070f0,d4c1f7c0fe672a4 X-Google-Attributes: gid1070f0,public X-Google-Thread: 111731,d4c1f7c0fe672a4 X-Google-Attributes: gid111731,public X-Google-Thread: 1164f8,d4c1f7c0fe672a4 X-Google-Attributes: gid1164f8,public From: Thomas Tornblom Subject: Re: Night time Re: Different UNIX pro's and con's. Date: 1998/10/04 Message-ID: #1/1 X-Deja-AN: 397578351 References: <6tovb9$rs4$1@enterprise.nssl.noaa.gov> <3601DE1E.B03FA547@home.com> <3601EACB.93BB1252@home.com> <3603F04E.315ADEE2@gce.com> <36112946.D2CC7640@kodak.com> Organization: Sun Microsystems Newsgroups: comp.unix.advocacy,comp.unix.admin,comp.sys.hp.hpux,comp.sys.sgi.admin,comp.sys.sun.admin,comp.sys.dec Philip Isaac writes: > I've never seen any of my telnet sessions restored. Usually the window > looks okay until I hit return and then I get connection closed. Maybe > somebody can explain to me how in.telnetd or in.rlogind can work keep > the socket open on the receiving end while the Sun is in > suspend mode? > > > To test it I opened up a bunch of telnet connections to various > > machines on a friday afternoon and suspended the system. On monday > > morning I power it up and the connections were all in place. I guess > > this would not have worked with anything but TCP/IP. > Without going over the code, my guess would be that the window size are set to 0, which I believe is ok to have indefinite. You would definitely *not* want KEEPALIVE on the socket. From man setsockopt: SO_KEEPALIVE Keeps connections active by enabling the periodic transmission of messages, if this is supported by the protocol. This option takes an int value. If the connected socket fails to respond to these messages, the connection is broken and processes writing to that socket are notified with a SIGPIPE signal. Don't know how this interact with a window size = 0. It was a few years ago I tested this. Things may have changed, or my memory might be fading. It could have been xterms instead of telnet. I need to check this again. -- Thomas Tornblom Tel: +46 8 623 9100 E-mail: Thomas.Tornblom@Sun.SE Sun Microsystems AB Fax: +46 8 623 9102