Browse Source

add test for workers

1.4
clowwindy 11 years ago
parent
commit
ddbab8f9cd
  1. 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…
Cancel
Save