CARVIEW |
Select Language
HTTP/2 200
date: Tue, 22 Jul 2025 21:49:51 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/"c4a498fd7ae5003625457bd28f42d008"
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=DJDwFff7zQSMKGEmDRne2cbgTnWmLXuc1GVKasmtLDY%2FUDCgYDQwSqYoxKiBPTCuoG7%2Bxst9JOyixUM82elZIL8QnrER6sCkzZkfhlz9JMEDK1N1sGZ68U%2FwqX9ICwDuzFHk9VcSGCCHjt5tP8xUIyDNnOQl8Jtmp4V2i1yBjduvYWTejQPUgA3xy4PcVd8uu62qR3J%2Bgdmn%2F95Ua3YjOfOtyxOZ9EpY28itZwaWuTIqodimbjUHDcKyc04gdRiys8Ijh9%2BPwU8GtKE41IRx7g%3D%3D--PIM51R8oHSjbdHih--W2BYknKXO07JLbz0M15eMA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1980702493.1753220990; Path=/; Domain=github.com; Expires=Wed, 22 Jul 2026 21:49:50 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Wed, 22 Jul 2026 21:49:50 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: A7A4:941DF:165EBB:1DB319:6880077E
Fix connection getting timeout while idle (#1167) · neo4j/neo4j-javascript-driver@ce8bc52 · GitHub
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/connection-provider/connection-provider-pooled.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/connection/connection-channel.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/test/connection/connection-channel.test.js
Copy file name to clipboardExpand all lines: packages/neo4j-driver-deno/lib/bolt-connection/connection-provider/connection-provider-pooled.js
Copy file name to clipboardExpand all lines: packages/neo4j-driver-deno/lib/bolt-connection/connection/connection-channel.js
Copy file name to clipboardExpand all lines: packages/neo4j-driver/test/internal/connection-provider-pooled.test.js
Copy file name to clipboardExpand all lines: packages/neo4j-driver/test/internal/fake-connection.js
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 152
Commit ce8bc52
Fix connection getting timeout while idle (#1167)
When the connection goes idle, an observer is appended. And this causes the receive timeout to start to count. This behaviour causes connections timing out while being idle in the pool.
For fixing this, the connection received methods to handle its status changing to idle and back from idle. When the connection goes idle, it should stop the timeouts and do not start any timeout until it gets busy again.
This change also impacts the `hasOngoingRequests` method, since idle connections don't have ongoing requests.
Co-authored-by: Robsdedude <dev@rouvenbauer.de>1 parent fda596c commit ce8bc52Copy full SHA for ce8bc52
File tree
Expand file treeCollapse file tree
8 files changed
+233
-15
lines changedFilter options
- packages
- bolt-connection
- src
- connection-provider
- connection
- test/connection
- neo4j-driver-deno/lib/bolt-connection
- connection-provider
- connection
- neo4j-driver/test/internal
- testkit-backend/src/skipped-tests
Expand file treeCollapse file tree
8 files changed
+233
-15
lines changedpackages/bolt-connection/src/connection-provider/connection-provider-pooled.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/connection-provider/connection-provider-pooled.js+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
226 | 226 |
| |
227 | 227 |
| |
228 | 228 |
| |
229 |
| - | |
| 229 | + | |
230 | 230 |
| |
231 | 231 |
| |
232 | 232 |
| |
233 |
| - | |
| 233 | + | |
234 | 234 |
| |
235 | 235 |
| |
236 | 236 |
| |
|
packages/bolt-connection/src/connection/connection-channel.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/connection/connection-channel.js+25-2Lines changed: 25 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
125 | 125 |
| |
126 | 126 |
| |
127 | 127 |
| |
| 128 | + | |
128 | 129 |
| |
129 | 130 |
| |
130 | 131 |
| |
| |||
393 | 394 |
| |
394 | 395 |
| |
395 | 396 |
| |
396 |
| - | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
397 | 417 |
| |
398 | 418 |
| |
399 | 419 |
| |
| |||
402 | 422 |
| |
403 | 423 |
| |
404 | 424 |
| |
405 |
| - | |
| 425 | + | |
406 | 426 |
| |
407 | 427 |
| |
408 | 428 |
| |
| |||
500 | 520 |
| |
501 | 521 |
| |
502 | 522 |
| |
| 523 | + | |
| 524 | + | |
| 525 | + | |
503 | 526 |
| |
504 | 527 |
| |
505 | 528 |
| |
|
packages/bolt-connection/test/connection/connection-channel.test.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/test/connection/connection-channel.test.js+139-4Lines changed: 139 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
559 | 559 |
| |
560 | 560 |
| |
561 | 561 |
| |
562 |
| - | |
| 562 | + | |
563 | 563 |
| |
564 | 564 |
| |
565 | 565 |
| |
| |||
571 | 571 |
| |
572 | 572 |
| |
573 | 573 |
| |
574 |
| - | |
| 574 | + | |
575 | 575 |
| |
576 | 576 |
| |
577 | 577 |
| |
| |||
585 | 585 |
| |
586 | 586 |
| |
587 | 587 |
| |
588 |
| - | |
| 588 | + | |
589 | 589 |
| |
590 | 590 |
| |
591 | 591 |
| |
| |||
599 | 599 |
| |
600 | 600 |
| |
601 | 601 |
| |
602 |
| - | |
| 602 | + | |
603 | 603 |
| |
604 | 604 |
| |
605 | 605 |
| |
| |||
610 | 610 |
| |
611 | 611 |
| |
612 | 612 |
| |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
613 | 675 |
| |
614 | 676 |
| |
615 | 677 |
| |
| |||
1181 | 1243 |
| |
1182 | 1244 |
| |
1183 | 1245 |
| |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
1184 | 1284 |
| |
1185 | 1285 |
| |
1186 | 1286 |
| |
| |||
1195 | 1295 |
| |
1196 | 1296 |
| |
1197 | 1297 |
| |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
1198 | 1333 |
| |
1199 | 1334 |
| |
1200 | 1335 |
| |
|
packages/neo4j-driver-deno/lib/bolt-connection/connection-provider/connection-provider-pooled.js
Copy file name to clipboardExpand all lines: packages/neo4j-driver-deno/lib/bolt-connection/connection-provider/connection-provider-pooled.js+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
226 | 226 |
| |
227 | 227 |
| |
228 | 228 |
| |
229 |
| - | |
| 229 | + | |
230 | 230 |
| |
231 | 231 |
| |
232 | 232 |
| |
233 |
| - | |
| 233 | + | |
234 | 234 |
| |
235 | 235 |
| |
236 | 236 |
| |
|
packages/neo4j-driver-deno/lib/bolt-connection/connection/connection-channel.js
Copy file name to clipboardExpand all lines: packages/neo4j-driver-deno/lib/bolt-connection/connection/connection-channel.js+25-2Lines changed: 25 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
125 | 125 |
| |
126 | 126 |
| |
127 | 127 |
| |
| 128 | + | |
128 | 129 |
| |
129 | 130 |
| |
130 | 131 |
| |
| |||
393 | 394 |
| |
394 | 395 |
| |
395 | 396 |
| |
396 |
| - | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
397 | 417 |
| |
398 | 418 |
| |
399 | 419 |
| |
| |||
402 | 422 |
| |
403 | 423 |
| |
404 | 424 |
| |
405 |
| - | |
| 425 | + | |
406 | 426 |
| |
407 | 427 |
| |
408 | 428 |
| |
| |||
500 | 520 |
| |
501 | 521 |
| |
502 | 522 |
| |
| 523 | + | |
| 524 | + | |
| 525 | + | |
503 | 526 |
| |
504 | 527 |
| |
505 | 528 |
| |
|
packages/neo4j-driver/test/internal/connection-provider-pooled.test.js
Copy file name to clipboardExpand all lines: packages/neo4j-driver/test/internal/connection-provider-pooled.test.js+25Lines changed: 25 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
71 | 71 |
| |
72 | 72 |
| |
73 | 73 |
| |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
74 | 99 |
|
packages/neo4j-driver/test/internal/fake-connection.js
Copy file name to clipboardExpand all lines: packages/neo4j-driver/test/internal/fake-connection.js+12-1Lines changed: 12 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
42 |
| - | |
| 42 | + | |
| 43 | + | |
43 | 44 |
| |
44 | 45 |
| |
45 | 46 |
| |
| |||
101 | 102 |
| |
102 | 103 |
| |
103 | 104 |
| |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
104 | 115 |
| |
105 | 116 |
| |
106 | 117 |
| |
|
You can’t perform that action at this time.
0 commit comments