python + selenium 在ubuntu 上遇到的socket连接问题
我的case是用python的unittest2框架写的,执行用的是nosetests,每个case单个执行的时候都没有问题,做成suite执行时就会出现下面的socket连接错误。ubuntu上的socket连接数和其他相关的高并发高性能配置都已经做好了,实在是查不出来问题在哪。不知道哪位兄弟遇到过同样的问题吗?File "/home/william/easystack-dev/eagle-eye/.venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/webelement.py", line 448, in _execute
return self._parent.execute(command, params)
File "/home/william/easystack-dev/eagle-eye/.venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 194, in execute
response = self.command_executor.execute(driver_command, params)
File "/home/william/easystack-dev/eagle-eye/.venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/remote_connection.py", line 397, in execute
return self._request(command_info, url, body=data)
File "/home/william/easystack-dev/eagle-eye/.venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/remote_connection.py", line 427, in _request
self._conn.request(method, parsed_url.path, body, headers)
File "/usr/lib/python2.7/httplib.py", line 979, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.7/httplib.py", line 1013, in _send_request
self.endheaders(body)
File "/usr/lib/python2.7/httplib.py", line 975, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 835, in _send_output
self.send(msg)
File "/usr/lib/python2.7/httplib.py", line 797, in send
self.connect()
File "/usr/lib/python2.7/httplib.py", line 778, in connect
self.timeout, self.source_address)
File "/usr/lib/python2.7/socket.py", line 571, in create_connection
raise err
socket.error: Connection refused
页:
[1]