-
Notifications
You must be signed in to change notification settings - Fork 634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add handling of offset and length to NettyOutbound#sendFileChunked #320
Conversation
lhotari
commented
Apr 12, 2018
- The position and count parameters on reactor.ipc.netty.NettyOutbound#sendFileChunked method calls were ignored.
- sendFile tests are now refactored so that same tests are used for both http and https
- new tests for SSL reveal problem with sendFileAsync4096/sendFileAsync1024 (ignored for now)
Codecov Report
@@ Coverage Diff @@
## master #320 +/- ##
============================================
+ Coverage 68.28% 68.37% +0.09%
- Complexity 1022 1024 +2
============================================
Files 73 73
Lines 4310 4310
Branches 615 615
============================================
+ Hits 2943 2947 +4
+ Misses 996 993 -3
+ Partials 371 370 -1
Continue to review full report at Codecov.
|
protected void customizeClientOptions(HttpClientOptions.Builder options) { | ||
try { | ||
options.sslContext(SslContextBuilder | ||
.forServer(ssc.certificate(), ssc.privateKey()).build()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you create SslContext for server when customising the client options?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch, fixed.
@Override | ||
protected void customizeServerOptions(HttpServerOptions.Builder options) { | ||
try { | ||
options.sslContext(SslContextBuilder.forClient() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you create SslContext for client when customising the server options?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch, fixed.
- new tests for SSL reveal problem with sendFileAsync4096/sendFileAsync1024 when SSL is used
9c7b815
to
1820d20
Compare