CARVIEW |
Select Language
HTTP/2 200
date: Sun, 20 Jul 2025 01:29:07 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/"4754d01e2cb00ec38d90670c8f1463a6"
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=Y6qH4TdKcls5ZFAvhDR4NN3fb3K%2FJc%2F2nQJzxOgVQcmT63NeSP5iIqdqq4KbV1Ol4ybFJE59YGrjQmvr0WUfsSpDL6%2BQ50h1%2BlAX2%2BRiFSYWUAuVBnGtgfqIgwAdlcnnKwLe%2By4zW65fKYxiqWQcn%2BaJd2h%2FghxI2sUgMNVAJGEgLv3garSoAsAgFxW6wlGFrdKOCaTBgCGzqZClWep9VZ3cEYSBZ%2FHAz%2BxbyCGVwLP4PopCp%2B7zClyiTj93OX27BnRJ5Dw4XkbbQCsHtfyv6A%3D%3D--iKmH3Rum6tNvZC1t--60BPMoNuXvsLvUvOjiazBw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1973455956.1752974945; Path=/; Domain=github.com; Expires=Mon, 20 Jul 2026 01:29:05 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 20 Jul 2026 01:29:05 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: EAC0:2BEE38:950183:C076E7:687C4661
Fix `maxConnectionPoolSize` verification (#1216) · neo4j/neo4j-javascript-driver@720e5c6 · GitHub
Copy file name to clipboardExpand all lines: packages/core/src/internal/pool/pool.ts
Copy file name to clipboardExpand all lines: packages/core/test/internal/pool/pool.test.ts
Copy file name to clipboardExpand all lines: packages/neo4j-driver-deno/lib/core/internal/pool/pool.ts
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 152
Commit 720e5c6
Fix
* Fix `maxConnectionPoolSize` verification
Under high load of sessions, the connection pool is allowing new
connections to be created.
This is happening because, while the development of `AuthTokenManager`
and `connection liveness check`,
the methods do validate connection on acquired and return to the pool
need to be async.
This changes creates a situation of racing condition which doesn't exist
the original code and this introduces this bug.
Increasing the resouce acquired count before validating the connection
solves the issue, since the race condition is removed.
However, the pool needs also to release the resource when the validation
return `false` or fails for some reason.
This is important to avoid broken connection still be count for the max
pool size.
Co-Authored-By: Max Gustafsson <max.gustafsson@neo4j.com>
* Adjusting test for be more resilient
The test were to tight and any slowness might cause the test to fail.
Increase the time waiting for the connection get release to pool reduces
the likehood of this problem happens.
---------
Co-authored-by: Max Gustafsson <max.gustafsson@neo4j.com>maxConnectionPoolSize
verification (#1216)1 parent c517fa9 commit 720e5c6Copy full SHA for 720e5c6
File tree
Expand file treeCollapse file tree
3 files changed
+164
-5
lines changedFilter options
- packages
- core
- src/internal/pool
- test/internal/pool
- neo4j-driver-deno/lib/core/internal/pool
Expand file treeCollapse file tree
3 files changed
+164
-5
lines changedpackages/core/src/internal/pool/pool.ts
Copy file name to clipboardExpand all lines: packages/core/src/internal/pool/pool.ts+15-2Lines changed: 15 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
251 | 251 |
| |
252 | 252 |
| |
253 | 253 |
| |
| 254 | + | |
| 255 | + | |
254 | 256 |
| |
255 | 257 |
| |
256 | 258 |
| |
257 | 259 |
| |
258 |
| - | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
259 | 272 |
| |
260 |
| - | |
261 | 273 |
| |
262 | 274 |
| |
263 | 275 |
| |
264 | 276 |
| |
265 | 277 |
| |
266 | 278 |
| |
| 279 | + | |
267 | 280 |
| |
268 | 281 |
| |
269 | 282 |
| |
|
packages/core/test/internal/pool/pool.test.ts
Copy file name to clipboardExpand all lines: packages/core/test/internal/pool/pool.test.ts+134-1Lines changed: 134 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
905 | 905 |
| |
906 | 906 |
| |
907 | 907 |
| |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
908 | 1041 |
| |
909 | 1042 |
| |
910 | 1043 |
| |
| |||
1157 | 1290 |
| |
1158 | 1291 |
| |
1159 | 1292 |
| |
1160 |
| - | |
| 1293 | + | |
1161 | 1294 |
| |
1162 | 1295 |
| |
1163 | 1296 |
| |
|
packages/neo4j-driver-deno/lib/core/internal/pool/pool.ts
Copy file name to clipboardExpand all lines: packages/neo4j-driver-deno/lib/core/internal/pool/pool.ts+15-2Lines changed: 15 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
251 | 251 |
| |
252 | 252 |
| |
253 | 253 |
| |
| 254 | + | |
| 255 | + | |
254 | 256 |
| |
255 | 257 |
| |
256 | 258 |
| |
257 | 259 |
| |
258 |
| - | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
259 | 272 |
| |
260 |
| - | |
261 | 273 |
| |
262 | 274 |
| |
263 | 275 |
| |
264 | 276 |
| |
265 | 277 |
| |
266 | 278 |
| |
| 279 | + | |
267 | 280 |
| |
268 | 281 |
| |
269 | 282 |
| |
|
You can’t perform that action at this time.
0 commit comments