You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a new agent advertises itself to shoal the server tries to verify it when it is added to the list of squids. In the case of an old or misconfigured agent that is running behind a firewall the server is hung waiting for the connection to time out.
To fix this a timeout can be specified in the requst.get call ex:
this would result in a timeout after one second if there is no response freeing up the consumer thread to do its job.
Alternatively the initial verification could be stripped out of the consumer thread and just have the verification thread handle all verification processes.
The text was updated successfully, but these errors were encountered:
I've added a 2 second timeout to the verification request.
This should allow time for the file to be downloaded even
if it is half the world away. This should make for a more
responsive server on a restart adding the squids back to
human UI much faster. This will also make it so the server
never spends more than 2 seconds on a bad(unverifiable)
squid.
When a new agent advertises itself to shoal the server tries to verify it when it is added to the list of squids. In the case of an old or misconfigured agent that is running behind a firewall the server is hung waiting for the connection to time out.
To fix this a timeout can be specified in the requst.get call ex:
requests.get(targeturl, proxies=proxies, timeout=1)
this would result in a timeout after one second if there is no response freeing up the consumer thread to do its job.
Alternatively the initial verification could be stripped out of the consumer thread and just have the verification thread handle all verification processes.
The text was updated successfully, but these errors were encountered: