I found this code on daniweb, posted 4 years ago.You are supposed to connect via telnet, and it is a chat server in python.After spending about 30 minutes trying to indent the code, I fired it up on my server to find out I get no error, simply a 'connection closed by host' when connecting from telnet.

The problem is, I'm not sure if I failed to indent a certain snippet of code properly, or if the problem is networking, or if there is some sort of logic error.

From what I can see, it seems that connections is always empty inside HNCS.verify_request(), so None is returned every time.

But even after connecting to it(by just returning True), there seem to be other problems with this script as well.Also, from what I've heard, SocketServer is not something you want to be using.Never used it myself, but people say it's a rather simplistic, unreliable library, not suited for any serious programming.

I'd recommend writing your own chat server instead of using this one (I'd do it using twisted).The code's going to be simpler, you'll know for sure how it works, and it will actually work.