OS Error 23
-
Hello,
from time to time, trying to create a socket withinetSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
I get to an exception (OS Error 23).
I just wonder what is OS Error 23 and how to prevent it.
Thanks
Thiery
-
@Thierry Glad to hear you got it fixed :)
-
This post is deleted!
-
Hello @d-alvrzx , I have seen it --of course-- (but my socket is cleanly closed after use).
I solved the issue running the garbage collector every 1 seconds (OS Error 23 seems to be "too many open files").
-
A quick google shows that the error could be caused by not closing the socket after using it? Unsure, but worth a try.