Skip to content

Instantly share code, notes, and snippets.

@Ali-Razmjoo
Ali-Razmjoo / file.py
Last active January 20, 2016 11:43
python thread error - 845 threads
part of file:
with ThreadPoolExecutor(max_workers = thread_connection) as executor:
for port in ports:
executor.submit(ping, host, port, available_ports)
D:\some_folder_name\simplecode>simplecode.py
Calculating IPs, Please Wait ...