Skip to content
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

fix #293 support expect 100-continue #295

Merged
merged 6 commits into from Feb 27, 2018
Merged

Conversation

smaldini
Copy link
Contributor

HttpServerHandler now write informational response separately.
In order to fully work the fix correctly defers header sending on subscribe.
This can give precedence to the expect100Continue logic in receiveObject()

@smaldini smaldini added the type/bug A general bug label Feb 26, 2018
@smaldini smaldini added this to the 0.7.5.RELEASE milestone Feb 26, 2018
violetagg and others added 5 commits February 26, 2018 17:49
HttpServerHandler now write informational response separately.
In order to fully work the fix correctly defers header sending on subscribe.
This can give precedence to the expect100Continue logic in receiveObject()
As a server response, if no identified message length, do not persist
As a server empty body response, always assume persist
As a client request, do not assume anything
- Correctly defer cleanHandlerTerminate in HttpServerHandler
- Manage markPersistent(true) in a single HttpServerOp method
- Override sendObject for client to force chunked transfer on send if:
- Not head verb, not header sent, no length defined
- Delegate sendHeader() implementation to then()
- Try to create FullHttpMessage if contentLength defined and 0
@codecov-io
Copy link

Codecov Report

Merging #295 into master will decrease coverage by <.01%.
The diff coverage is 85%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #295      +/-   ##
============================================
- Coverage     67.92%   67.92%   -0.01%     
- Complexity     1021     1027       +6     
============================================
  Files            74       74              
  Lines          4306     4318      +12     
  Branches        617      615       -2     
============================================
+ Hits           2925     2933       +8     
- Misses         1008     1017       +9     
+ Partials        373      368       -5
Impacted Files Coverage Δ Complexity Δ
...actor/ipc/netty/http/server/HttpServerHandler.java 76.51% <100%> (+2.32%) 40 <0> (+3) ⬆️
...or/ipc/netty/http/server/HttpServerOperations.java 70.11% <75%> (+1.66%) 52 <4> (+5) ⬆️
...in/java/reactor/ipc/netty/http/HttpOperations.java 69.23% <81.25%> (+1.78%) 23 <6> (-4) ⬇️
...or/ipc/netty/http/client/HttpClientOperations.java 54.61% <83.33%> (-0.08%) 75 <4> (+3)
.../ipc/netty/channel/PooledClientContextHandler.java 63.02% <0%> (-5.05%) 25% <0%> (-2%)
.../ipc/netty/http/client/MonoHttpClientResponse.java 77.02% <0%> (-4.06%) 6% <0%> (ø)
...in/java/reactor/ipc/netty/channel/FluxReceive.java 83.16% <0%> (-2.05%) 65% <0%> (-1%)
...or/ipc/netty/channel/ChannelOperationsHandler.java 62.23% <0%> (+0.69%) 57% <0%> (+2%) ⬆️
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7b1f0c6...82ea7d8. Read the comment docs.

@smaldini smaldini merged commit 25b51f9 into master Feb 27, 2018
@smaldini smaldini deleted the 293-expect100continue branch February 27, 2018 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants