We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d400f42 commit ace2c02Copy full SHA for ace2c02
tests/pylt/requests.py
@@ -249,6 +249,15 @@ def run_test(self) -> bool:
249
hook_connect = True
250
251
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
+
261
def opensocket(purpose, address):
262
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM, 0)
263
sock.connect(('127.0.0.2', self.port))
0 commit comments