test: Document why connection is re-constructed on windows

This commit is contained in:
MarcoFalke
2020-04-11 11:53:16 -04:00
parent fa9f4f663c
commit faa655731e

View File

@@ -101,6 +101,7 @@ class AuthServiceProxy():
if os.name == 'nt':
# Windows somehow does not like to re-use connections
# TODO: Find out why the connection would disconnect occasionally and make it reusable on Windows
# Avoid "ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine"
self._set_conn()
try:
self.__conn.request(method, path, postdata, headers)