CARVIEW |
Select Language
HTTP/2 200
date: Sun, 20 Jul 2025 21:09:14 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/neo4j/neo4j-javascript-driver.git
etag: W/"3cce6af242d41e3d094c5cd739ae4591"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=u%2BVEoAxPdo5CbC5fRtWsI8T9d81Ys5rwvfX9YDrk2PNuMrLHJIqhpTL2guWQQgBUIihRPzJ3j8Cgx%2FTZNdbknnG8kaE3hxyDyEUiCEvhVnyYNyl2lCWOMVy9AhtlhJmC7hcro7yBh8%2BGtRpKwTGe3WHYKswYMd5nhrO5ScGy40p7MagmKW4f6Fux7MAFlCQBprLVdtPOM9ssirF4UK%2FfSa5q72ZHQfBpWxtweTyXmhD9sxDXOS9PljXzr3gkmk9khrXVuHqGL8D9SrQrj1KXUA%3D%3D--5hAKZSSaPGZ6bL1J--4XdPqdNIfIVfgphfBS4%2Bpw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.2008788982.1753045753; Path=/; Domain=github.com; Expires=Mon, 20 Jul 2026 21:09:13 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 20 Jul 2026 21:09:13 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 8060:2E5CB6:87D14F:AF3543:687D5AF9
Make connection acquisition timeout also consider the connection crea… · neo4j/neo4j-javascript-driver@13e9238 · GitHub
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/channel/channel-config.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/pool/pool.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/test/channel/node/node-channel.test.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/test/pool/pool.test.js
Copy file name to clipboardExpand all lines: packages/core/src/driver.ts
Copy file name to clipboardExpand all lines: packages/core/src/internal/constants.ts
Copy file name to clipboardExpand all lines: packages/core/test/driver.test.ts
Copy file name to clipboardExpand all lines: packages/neo4j-driver/test/driver.test.js
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 152
Commit 13e9238
authored
Make connection acquisition timeout also consider the connection creation time (#877)
The connection acquisition timeout must account for the whole acquisition execution time, whether a new connection is created, an idle connection is picked up instead or we need to wait until the full pool depletes.
In particular, the connection acquisition timeout (CAT) has precedence over the socket connection timeout (SCT).
If the SCT is set to 2 hours and CAT to 50ms, the connection acquisition should time out after 50ms (as usual, these evil cats win), even if the connection is successfully created within the SCT period.
Note: if SCT is larger than or equal to CAT, a warning should be issued, as this is likely a misconfiguration (and big SCT values won't have any effect on connection acquisitions anyway).1 parent 92fbe79 commit 13e9238Copy full SHA for 13e9238
File tree
Expand file treeCollapse file tree
10 files changed
+173
-85
lines changedFilter options
- packages
- bolt-connection
- src
- channel
- pool
- test
- channel/node
- pool
- core
- src
- internal
- test
- neo4j-driver/test
- internal
- testkit-backend/src
Expand file treeCollapse file tree
10 files changed
+173
-85
lines changedpackages/bolt-connection/src/channel/channel-config.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/channel/channel-config.js+1-19Lines changed: 1 addition & 19 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 |
| - | |
29 |
| - | |
30 | 28 |
| |
31 | 29 |
| |
32 | 30 |
| |
| |||
58 | 56 |
| |
59 | 57 |
| |
60 | 58 |
| |
61 |
| - | |
| 59 | + | |
62 | 60 |
| |
63 | 61 |
| |
64 | 62 |
| |
| |||
90 | 88 |
| |
91 | 89 |
| |
92 | 90 |
| |
93 |
| - | |
94 |
| - | |
95 |
| - | |
96 |
| - | |
97 |
| - | |
98 |
| - | |
99 |
| - | |
100 |
| - | |
101 |
| - | |
102 |
| - | |
103 |
| - | |
104 |
| - | |
105 |
| - | |
106 |
| - | |
107 |
| - | |
108 |
| - |
packages/bolt-connection/src/pool/pool.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/pool/pool.js+44-41Lines changed: 44 additions & 41 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
77 |
| - | |
78 |
| - | |
| 77 | + | |
79 | 78 |
| |
80 |
| - | |
81 |
| - | |
82 |
| - | |
83 |
| - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
84 | 87 |
| |
85 |
| - | |
86 |
| - | |
87 |
| - | |
88 |
| - | |
89 |
| - | |
90 |
| - | |
| 88 | + | |
| 89 | + | |
91 | 90 |
| |
92 |
| - | |
93 |
| - | |
94 |
| - | |
95 |
| - | |
96 |
| - | |
97 |
| - | |
98 |
| - | |
99 |
| - | |
100 |
| - | |
101 |
| - | |
102 |
| - | |
103 |
| - | |
104 |
| - | |
105 |
| - | |
106 |
| - | |
107 |
| - | |
108 |
| - | |
109 |
| - | |
110 |
| - | |
111 |
| - | |
112 |
| - | |
113 |
| - | |
114 |
| - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
115 | 107 |
| |
116 |
| - | |
117 |
| - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
118 | 111 |
| |
119 |
| - | |
120 |
| - | |
121 |
| - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
122 | 116 |
| |
123 | 117 |
| |
124 | 118 |
| |
| |||
315 | 309 |
| |
316 | 310 |
| |
317 | 311 |
| |
318 |
| - | |
| 312 | + | |
319 | 313 |
| |
320 | 314 |
| |
321 | 315 |
| |
| |||
339 | 333 |
| |
340 | 334 |
| |
341 | 335 |
| |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
342 | 345 |
| |
343 | 346 |
| |
344 | 347 |
| |
|
packages/bolt-connection/test/channel/node/node-channel.test.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/test/channel/node/node-channel.test.js+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
110 | 110 |
| |
111 | 111 |
| |
112 | 112 |
| |
113 |
| - | |
| 113 | + | |
114 | 114 |
| |
115 | 115 |
| |
116 | 116 |
| |
|
packages/bolt-connection/test/pool/pool.test.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/test/pool/pool.test.js+41Lines changed: 41 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
877 | 877 |
| |
878 | 878 |
| |
879 | 879 |
| |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
880 | 914 |
| |
881 | 915 |
| |
882 | 916 |
| |
| |||
895 | 929 |
| |
896 | 930 |
| |
897 | 931 |
| |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
898 | 939 |
| |
899 | 940 |
| |
900 | 941 |
| |
|
packages/core/src/driver.ts
Copy file name to clipboardExpand all lines: packages/core/src/driver.ts+37-3Lines changed: 37 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
| 29 | + | |
29 | 30 |
| |
30 | 31 |
| |
31 | 32 |
| |
| |||
131 | 132 |
| |
132 | 133 |
| |
133 | 134 |
| |
134 |
| - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
135 | 139 |
| |
136 | 140 |
| |
137 | 141 |
| |
138 | 142 |
| |
139 |
| - | |
| 143 | + | |
140 | 144 |
| |
141 | 145 |
| |
142 | 146 |
| |
| |||
366 | 370 |
| |
367 | 371 |
| |
368 | 372 |
| |
369 |
| - | |
| 373 | + | |
370 | 374 |
| |
371 | 375 |
| |
372 | 376 |
| |
373 | 377 |
| |
374 | 378 |
| |
375 | 379 |
| |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
376 | 389 |
| |
377 | 390 |
| |
378 | 391 |
| |
| |||
396 | 409 |
| |
397 | 410 |
| |
398 | 411 |
| |
| 412 | + | |
399 | 413 |
| |
400 | 414 |
| |
401 | 415 |
| |
| |||
431 | 445 |
| |
432 | 446 |
| |
433 | 447 |
| |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
434 | 468 |
| |
435 | 469 |
| |
436 | 470 |
| |
|
packages/core/src/internal/constants.ts
Copy file name to clipboardExpand all lines: packages/core/src/internal/constants.ts+2Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
| 23 | + | |
23 | 24 |
| |
24 | 25 |
| |
25 | 26 |
| |
| |||
37 | 38 |
| |
38 | 39 |
| |
39 | 40 |
| |
| 41 | + | |
40 | 42 |
| |
41 | 43 |
| |
42 | 44 |
| |
|
packages/core/test/driver.test.ts
Copy file name to clipboardExpand all lines: packages/core/test/driver.test.ts+40Lines changed: 40 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
| 24 | + | |
24 | 25 |
| |
25 | 26 |
| |
26 | 27 |
| |
| |||
155 | 156 |
| |
156 | 157 |
| |
157 | 158 |
| |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
158 | 197 |
| |
159 | 198 |
| |
160 | 199 |
| |
| |||
172 | 211 |
| |
173 | 212 |
| |
174 | 213 |
| |
| 214 | + | |
175 | 215 |
| |
176 | 216 |
| |
177 | 217 |
| |
|
packages/neo4j-driver/test/driver.test.js
Copy file name to clipboardExpand all lines: packages/neo4j-driver/test/driver.test.js+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
170 | 170 |
| |
171 | 171 |
| |
172 | 172 |
| |
173 |
| - | |
| 173 | + | |
174 | 174 |
| |
175 | 175 |
| |
176 | 176 |
| |
|
You can’t perform that action at this time.
0 commit comments