add test for workers
This commit is contained in:
parent
5c8e603ca6
commit
ddbab8f9cd
1 changed files with 2 additions and 0 deletions
2
test.py
2
test.py
|
@ -8,6 +8,7 @@ import select
|
||||||
import struct
|
import struct
|
||||||
import hashlib
|
import hashlib
|
||||||
import string
|
import string
|
||||||
|
import time
|
||||||
from subprocess import Popen, PIPE
|
from subprocess import Popen, PIPE
|
||||||
|
|
||||||
target1 = [
|
target1 = [
|
||||||
|
@ -105,6 +106,7 @@ try:
|
||||||
ready_count += 1
|
ready_count += 1
|
||||||
|
|
||||||
if ready_count == 2 and p3 is None:
|
if ready_count == 2 and p3 is None:
|
||||||
|
time.sleep(3)
|
||||||
p3 = Popen(['curl', 'http://www.example.com/', '-v', '-L',
|
p3 = Popen(['curl', 'http://www.example.com/', '-v', '-L',
|
||||||
'--socks5-hostname', '127.0.0.1:1080'], shell=False,
|
'--socks5-hostname', '127.0.0.1:1080'], shell=False,
|
||||||
bufsize=0, close_fds=True)
|
bufsize=0, close_fds=True)
|
||||||
|
|
Loading…
Add table
Reference in a new issue