Deleted Added
1import re
2import select
3import socket
4import time
5
6from conftest import option
7from conftest import run_process
8from conftest import waitforsocket
9from unit.applications.lang.python import TestApplicationPython
10
11
12class TestProxyChunked(TestApplicationPython):
13 prerequisites = {'modules': {'python': 'any'}}
14
15 SERVER_PORT = 7999
16

--- 63 unchanged lines hidden (view full) ---

80 body = body + l + '\r\n' + c + '\r\n'
81
82 return body + '0\r\n\r\n'
83
84 def get_http10(self, *args, **kwargs):
85 return self.get(*args, http_10=True, **kwargs)
86
87 def setup_method(self):
88 run_process(self.run_server, self.SERVER_PORT, option.temp_dir)
89 waitforsocket(self.SERVER_PORT)
90
91 assert 'success' in self.conf(
92 {
93 "listeners": {"*:7080": {"pass": "routes"},},
94 "routes": [
95 {
96 "action": {
97 "proxy": "http://127.0.0.1:"
98 + str(self.SERVER_PORT)

--- 141 unchanged lines hidden ---