Browse Source

Fixed missing tcp no delay option

master
Artyom Beilis 7 years ago
parent
commit
2b7f8bafe4
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      tests/filter_test.py

+ 1
- 0
tests/filter_test.py View File

@@ -95,6 +95,7 @@ class Conn:
query = 'GET ' + self.path + ' HTTP/1.0\r\n\r\n'
self.s=socket.socket(socket.AF_INET, socket.SOCK_STREAM);
self.s.connect(('127.0.0.1',8080))
self.s.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
if 'chunks' in opts:
size=int(opts['chunks'])
self.s.send(query)


Loading…
Cancel
Save