frechett@spot.Colorado.EDU (-=Runaway Daemon=-) (06/01/91)
I mentioned this problem at the end of one of my other posts but it appears that nobody saw it. I have used the server from the perl man pages as a very basic model for a server which I currently have running to let people browse through my hp48sx archives via telnet. Here is the problem: If a person is connected to my server via telnet and they press ^C ^O or ^\ the server stops sending stuff through the socket. The server is still running.. it will execute commands as it should, but it can't get the output back through the socket anymore. Now here is the weird part. If I toggle the automatic flush on interrupts to off in telnet none of those three keystrokes effect normal operation.. When I look at my logfile it looks like this. This is what the server sees.. 5/31 3:37 4242> 2 port=4546 Inet address 128.138.129.2 5/31 3:37 4242> 5/31 3:37 4242> \0377\365\377\375^F 5/31 3:37 4242> quit 5/31 3:38 4242> Listening again Telnet sends that sequence when I hit ^O and then the server stops talking to the socket.. Notice that i sent the quit after that and it worked fine.. Is there something like a socket reset that I can do? Is this a perl problem or a socket problem? Until I can figure this out the server can't be expanded as this is a pretty big bug.. Any ideas? ian -=Runaway Daemon=-