test: Try once more when RPC connection fails on Windows #18596
pull MarcoFalke wants to merge 4 commits into bitcoin:master from MarcoFalke:2004-testWin changing 2 files +13 −10-
MarcoFalke commented at 3:51 pm on April 11, 2020: memberFixes: #18548
-
fanquake added the label Tests on Apr 11, 2020
-
MarcoFalke force-pushed on Apr 11, 2020
-
MarcoFalke renamed this:
[WIP] test: Revert windows workaround temporarily
test: Try once more when RPC connection fails on Windows
on Apr 12, 2020 -
MarcoFalke force-pushed on Apr 12, 2020
-
MarcoFalke force-pushed on Apr 12, 2020
-
MarcoFalke force-pushed on Apr 12, 2020
-
MarcoFalke force-pushed on Apr 12, 2020
-
MarcoFalke force-pushed on Apr 12, 2020
-
cirrus: Bump freebsd to 12.1 fae760f2b2
-
test: Remove python 3.4 workaround fa9f4f663c
-
test: Document why connection is re-constructed on windows faa655731e
-
test: Try once more when RPC connection fails on Windows fab9899204
-
MarcoFalke force-pushed on Apr 12, 2020
-
MarcoFalke commented at 4:55 pm on April 12, 2020: member
Fixed. Tests should now run smoothly again on Linux, Windows and Freebsd.
Freebsd run: https://cirrus-ci.com/build/5888962329837568
-
in test/functional/test_framework/authproxy.py:110 in fab9899204
107 self.__conn.request(method, path, postdata, headers) 108 return self._get_response() 109- except http.client.BadStatusLine as e: 110- if e.line == "''": # if connection was closed, try again 111+ except (BrokenPipeError, ConnectionResetError): 112+ # Python 3.5+ raises BrokenPipeError when the connection was reset
hebasto commented at 9:01 am on April 13, 2020:Is such behavior Windows-specific?
MarcoFalke commented at 10:18 am on April 13, 2020:Please include the commit you are referring to in the comment. This pull shouldn’t change behaviour on non-windows machines in authproxy.in test/functional/test_framework/authproxy.py:103 in fab9899204
100@@ -101,23 +101,26 @@ def _request(self, method, path, postdata): 101 if os.name == 'nt': 102 # Windows somehow does not like to re-use connections 103 # TODO: Find out why the connection would disconnect occasionally and make it reusable on Windows
hebasto commented at 9:03 am on April 13, 2020:Are these lines still relevant?
MarcoFalke commented at 10:19 am on April 13, 2020:Yes, why wouldn’t they?hebasto approvedhebasto commented at 1:30 pm on April 13, 2020: memberACK fab98992043f47fa7240d7c1217920d0c4f783a2, I have reviewed the code and it looks OK, I agree it can be merged.MarcoFalke merged this on Apr 13, 2020MarcoFalke closed this on Apr 13, 2020
MarcoFalke deleted the branch on Apr 13, 2020deadalnix referenced this in commit dff6b6a293 on Sep 22, 2020PastaPastaPasta referenced this in commit 086f9346fd on Sep 25, 2021PastaPastaPasta referenced this in commit af79508f7e on Sep 28, 2021kittywhiskers referenced this in commit 37b812c370 on Oct 12, 2021DrahtBot locked this on Feb 15, 2022Labels
Tests
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-23 12:12 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-23 12:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me