Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recursion error after running server.py for multiple connections repeatedly #9

Open
ruturajsambhusvt opened this issue Jul 12, 2022 · 2 comments

Comments

@ruturajsambhusvt
Copy link

Hello, thank you for the great tutorial. Running the server.py for the first time works great, I got two different computers connected properly. When I close the program and rerun it, the following error is obtained. This error keeps popping up multiple times and then randomly goes away.

File "/home/trec/WorkRaj/PySocket/server_multi.py", line 41, in bind_socket
print("Binding the port"+str(port))
RecursionError: maximum recursion depth exceeded while calling a Python object

It would be great to know the reason for this error.

@erelbi
Copy link

erelbi commented Jul 13, 2022 via email

@ruturajsambhusvt
Copy link
Author

Hello, thanks for the reply. I get that there is a limit on recursion in python. What I wonder is what would be a potential fix to this issue, or should recursion be avoided in python in general?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants