How do i increase Windows limit to remove apps error of "1024 sockets"?

postcd

Weaksauce
Joined
Nov 24, 2016
Messages
96
Please kindly how exactly to increase the Windows 10 limit so the apps (in this case Python script) does not complain like: "OSError: cannot watch more than 1024 sockets"?
System Explorer tool shows that i am using around 65000 handles. This number seems familiar to me to some kind of limit or something.
I have found something, though not sure yet if that is relevant:
http://mikedopp.com/2007/increasing-user-handle-and-gdi-handle-limits/
https://weblogs.asp.net/mikedopp/increasing-user-handle-and-gdi-handle-limits
 
Please kindly how exactly to increase the Windows 10 limit so the apps (in this case Python script) does not complain like: "OSError: cannot watch more than 1024 sockets"?
System Explorer tool shows that i am using around 65000 handles. This number seems familiar to me to some kind of limit or something.
I have found something, though not sure yet if that is relevant:
http://mikedopp.com/2007/increasing-user-handle-and-gdi-handle-limits/
https://weblogs.asp.net/mikedopp/increasing-user-handle-and-gdi-handle-limits
65536 is usually some sort of a limit ;) 2 to the 16th power (bits).
 
What is the exact error statement?
Unhandled exception: OSError: cannot watch more than 1024 sockets in lib/gevent/baseserver.py line 199 > ... > corecext.pyx line 640 > 1006
Python app return it. I retried to run it when handles fall from 65K to 7K and app worked. I was using System explorer to sort processes but it not displayed any that would eat too much "handles" despite 65K was used, i seen top process with only 2K handles. Maybe it not displayed everything.
65536 is usually some sort of a limit ;) 2 to the 16th power (bits).
i see that i was searching this number before on search engines and reading some articles/posts, but ended up asking there how to increase that limit
 
Unhandled exception: OSError: cannot watch more than 1024 sockets in lib/gevent/baseserver.py line 199 > ... > corecext.pyx line 640 > 1006
Python app return it. I retried to run it when handles fall from 65K to 7K and app worked. I was using System explorer to sort processes but it not displayed any that would eat too much "handles" despite 65K was used, i seen top process with only 2K handles. Maybe it not displayed everything.

i see that i was searching this number before on search engines and reading some articles/posts, but ended up asking there how to increase that limit
Probably has to do with the data type python is using for one of the variables in the app. I doubt you could fix it without modifying the app source code or splitting the work (if you can do that).
 
i see that i was searching this number before on search engines and reading some articles/posts, but ended up asking there how to increase that limit
I can only tell how to do it on linux side. Windows... I'd have to Google like you.
 
Handles are not sockets? What are you trying to do in this python code? (Also, is there any event log entries about socket limit hit? There is a simultaneous socket limit due to worms...)

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top