Skip to content

Commit 2c3e149

Browse files
committed
adjust init file too
1 parent 1dfe2ed commit 2c3e149

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/init.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@
5959
// in order to use an externally generated JWT, there is no need to specify user and passwd, but just the JWT value:
6060
// ConnectionOptions::OPTION_AUTH_JWT => '', // use an externally generated JWT for authorization
6161

62-
ConnectionOptions::OPTION_TIMEOUT => 30, // timeout in seconds
63-
// ConnectionOptions::OPTION_TRACE => $traceFunc, // tracer function, can be used for debugging
62+
ConnectionOptions::OPTION_CONNECT_TIMEOUT => 10, // connect timeout in seconds
63+
ConnectionOptions::OPTION_REQUEST_TIMEOUT => 30, // request timeout in seconds
64+
// ConnectionOptions::OPTION_TRACE => $traceFunc, // tracer function, can be used for debugging
6465
ConnectionOptions::OPTION_CREATE => false, // do not create unknown collections automatically
6566
ConnectionOptions::OPTION_UPDATE_POLICY => UpdatePolicy::LAST, // last update wins
6667
];

0 commit comments

Comments
 (0)