Commit 10437e3
committed
Release IO buffer on outbound error
`OutboundMessageHandler` writes message to `ByteBuf`. It allocates a
dedicated IO buffer for this. Writing can fail for various reasons
(unsupported byte arrays, etc).
Previously this IO buffer has not been released in case of an error.
When writing is successful IO buffer is released by then channel pipeline.
This commit makes `OutboundMessageHandler` release buffer before
rethrowing the exception.1 parent aac5738 commit 10437e3
File tree
1 file changed
+4
-4
lines changed- driver/src/main/java/org/neo4j/driver/internal/async/outbound
1 file changed
+4
-4
lines changedLines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | 71 | | |
75 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
0 commit comments