diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-10-30 14:37:10 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-10-30 14:37:10 -0700 |
commit | 2fb3456c4fefd57f25e08082b9b7771c47188784 (patch) | |
tree | 6e9a424380a14dcfe95454286ded21853fda0a76 /tests/socket_relay.py | |
parent | e28f99d18f384b98b416af7a9422d0959afab0e8 (diff) |
support growing the socket data buffer, and enable working bigdata socket test
Diffstat (limited to 'tests/socket_relay.py')
-rw-r--r-- | tests/socket_relay.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/socket_relay.py b/tests/socket_relay.py index c7adcbfe..5b6403f9 100644 --- a/tests/socket_relay.py +++ b/tests/socket_relay.py @@ -29,15 +29,15 @@ class Listener(threading.Thread): conn, addr = s.accept() self.conn = conn while 1: - time.sleep(1) + time.sleep(0.5) print 'listener', port, 'waiting for data' - data = conn.recv(1024) + data = conn.recv(20*1024) if not data: continue while not self.other.conn: print 'listener', port, 'waiting for other connection in order to send data' time.sleep(1) - print 'listener', port, 'sending data', data + print 'listener', port, 'sending data', len(data) self.other.conn.send(data) in_listener = Listener() |