Commit f71b68f
committed
Session#reset() releases connection last
Previously it tried to first release connection and then mark existing
transaction as terminated. This could've been problematic because it
allowed transaction to be used on the client after RESET, which clears
connection state on the server.
This commit makes `Session#reset()` first mark existing transaction as
terminated and only then release the connection. Releasing connection
implies RESET.1 parent 5c71e11 commit f71b68f
File tree
2 files changed
+26
-8
lines changed- driver/src
- main/java/org/neo4j/driver/internal
- test/java/org/neo4j/driver/internal
2 files changed
+26
-8
lines changedLines changed: 7 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
265 | 264 | | |
266 | 265 | | |
267 | 266 | | |
| |||
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
663 | 663 | | |
664 | 664 | | |
665 | 665 | | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
666 | 685 | | |
667 | 686 | | |
668 | 687 | | |
| |||
0 commit comments