dpz@convex.com (David Paul Zimmerman) (09/05/89)
Imagine yourself in another universe, perhaps this one, where KEEPALIVE isn't working. Say that you open a TCP connection to a cisco terminal server, and you specify KEEPALIVE on the socket, but the cisco end isn't keeping alive, choosing instead to freeze up after a random, reasonably long (~hours), amount of time. Is this a symptom of the cisco not doing KEEPALIVEs correctly? That's my current suspicion. The program looks OK to me, and cisco tech support agrees. I'm trying to think up ways to hack around it. There's this select() call I use to check the readability or writability of a pty or a network socket. By putting a timeout on it, I guess I can just arbitrarily close and reopen the connection to the cisco after, oh, a half hour of waiting. Any better ideas? David David Paul Zimmerman dpz@convex.com CONVEX Computer Corp convex!dpz