Skip to content

Commit ace2c02

Browse files
committed
[tests] curl SOCKOPT_ALREADY_CONNECTED broken vom 7.88 to 8.0
Change-Id: I7a87c54b96dd5a099c86e9d6b6982502f0a65cae
1 parent d400f42 commit ace2c02

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/pylt/requests.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,15 @@ def run_test(self) -> bool:
249249
hook_connect = True
250250

251251
if hook_connect:
252+
# SOCKOPT_ALREADY_CONNECTED is broken from 7.88 to 8.0
253+
# https://github.com/curl/curl/commit/233810bb5f6c5e7bedfc10bdd36607b958c0cfe4
254+
curl_version = pycurl.version_info()[2]
255+
CURL_V7_88 = 7 << 16 | 88 << 8
256+
CURL_V8 = 8 << 16
257+
if CURL_V7_88 <= curl_version <= CURL_V8:
258+
log("broken curl version, SOCKOPT_ALREADY_CONNECTED not working")
259+
self.todo = True
260+
252261
def opensocket(purpose, address):
253262
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM, 0)
254263
sock.connect(('127.0.0.2', self.port))

0 commit comments

Comments
 (0)