Skip to content
Advertisement

Python SocketServer error upon connection

I am running a Python server using the socketserver module in Python 3.1. Every time I get a connection from the client (which succeeds client side), my server receives an error. Here is my code:

JavaScript

And here is my error:

JavaScript

The odd thing I noticed about the error is that the port it gives on the second line is different than the port I’m using. I’m not really sure what the error is here…

Thanks for the help.

Advertisement

Answer

Try calling the __init__ method of the superclass:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement