Commit 2b2bc8f
committed
Avoid closing the file descriptor when sending directly a FileChannel/RandomAccessFile.
Motivation:
Sending a FileChannel/RandomAccessFile should not close it, currently unlike for sending file region, it is closed by the ChunkedWriteHandle.
Changes:
Override ChunkedNioFile to prevent the file descriptor to be closed1 parent 47dd02d commit 2b2bc8f
3 files changed
Lines changed: 7 additions & 3 deletions
File tree
- vertx-core/src
- main/java/io/vertx/core/net/impl
- test/java/io/vertx/tests/http/sendfile
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
502 | | - | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
503 | 508 | | |
504 | 509 | | |
505 | 510 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
| 357 | + | |
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| |||
0 commit comments