Skip to content

Commit 73a510d

Browse files
committed
Workaround CDRIVER-610
1 parent 5494b86 commit 73a510d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/connect/standalone-ssl-0002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Connect to MongoDB with using SSL and verify the stream
66
<?php
77
require_once __DIR__ . "/../utils/basic.inc";
88

9-
$dsn = sprintf("%s/?ssl=true", STANDALONE_SSL);
9+
$dsn = sprintf("%s/?ssl=true&serverselectiontimeoutms=%d", STANDALONE_SSL, 500);
1010

1111
$SSL_DIR = realpath(__DIR__ . "/" . "./../../scripts/ssl/");
1212
function isValid(array $cert) {

tests/connect/standalone-ssl-0004.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Connect to MongoDB with using SSL and verify the stream
66
<?php
77
require_once __DIR__ . "/../utils/basic.inc";
88

9-
$dsn = sprintf("%s/?ssl=true", STANDALONE_SSL);
9+
$dsn = sprintf("%s/?ssl=true&serverselectiontimeoutms=%d", STANDALONE_SSL, 500);
1010

1111
$SSL_DIR = realpath(__DIR__ . "/" . "./../../scripts/ssl/");
1212
$opts = array(

tests/standalone/bug0159.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ PHPC-159: Memleak on failed path resolving
77
require_once __DIR__ . "/../utils/basic.inc";
88

99
$uri = parse_url(STANDALONE);
10-
$manager = new MongoDB\Driver\Manager("mongodb:///tmp/mongodb-27018.sock,{$uri["host"]}:{$uri["port"]}");
10+
$manager = new MongoDB\Driver\Manager("mongodb:///tmp/mongodb-27018.sock,{$uri["host"]}:{$uri["port"]}/?serverselectiontimeoutms=500");
1111
try {
1212
$manager->executeQuery("foo.bar", new MongoDB\Driver\Query(array()));
1313
} catch(Exception $e) {}

0 commit comments

Comments
 (0)