Skip to content

Commit fa584b4

Browse files
author
MarcoFalke
committed
test: Remove windows workaround in authproxy
1 parent 49b87bf commit fa584b4

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

test/functional/test_framework/authproxy.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
import http.client
4040
import json
4141
import logging
42-
import os
4342
import socket
4443
import time
4544
import urllib.parse
@@ -100,11 +99,6 @@ def _request(self, method, path, postdata):
10099
'User-Agent': USER_AGENT,
101100
'Authorization': self.__auth_header,
102101
'Content-type': 'application/json'}
103-
if os.name == 'nt':
104-
# Windows somehow does not like to re-use connections
105-
# TODO: Find out why the connection would disconnect occasionally and make it reusable on Windows
106-
# Avoid "ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine"
107-
self._set_conn()
108102
self.__conn.request(method, path, postdata, headers)
109103
return self._get_response()
110104

0 commit comments

Comments
 (0)