Skip to content

1.16.x update#1187

Closed
kgiusti wants to merge 8 commits intoapache:mainfrom
kgiusti:1.16.x-update
Closed

1.16.x update#1187
kgiusti wants to merge 8 commits intoapache:mainfrom
kgiusti:1.16.x-update

Conversation

@kgiusti
Copy link
Contributor

@kgiusti kgiusti commented May 5, 2021

No description provided.

Chuck Rolke and others added 8 commits May 3, 2021 15:16
Non-terminal dispositions were added to effect TCP adaptor flow control
in the 1.16 release. Scraper needs adjustments to handle them.

 * Report negative disposition delta times as 0 seconds
 * Allow non-terminal dispositions to be overwritten without logging an error
and not on the core thread. Move flush_outgoing_bufs call to
handle_disconnected function.

This closes apache#1174

(cherry picked from commit 18bce61)
When TCP adaptor receives an EOS in the incoming streaming link then
it calls pn_raw_write_close to the corresponding PN raw connection.
This sends a FIN to the raw connection peer.

If the adaptor then continues to honor the RX window closure then it
never reads data from the raw connection that now has a close in
progress. Further, when the incoming TCP window is full then the
raw connection never returns the client's FIN and the connection
is stuck open.

This patch causes the adaptor to override backpressure flow control
and to keep reading from a raw connection after a write_close has been
effected.

This closes apache#1177

(cherry picked from commit 7ef0a0f)
This patch makes the qd_timer_cancel() and qd_timer_free() routines
block if the timer callback is currently running on another thread.
This ensures that the callback is not executing when these calls
return.

It includes a fix to the HTTP1 adapter to avoid freeing its timer
while holding the adaptor lock.

This closes apache#1170

(cherry picked from commit 34b3c11)

Needed by fix for blocker JIRA DISPATCH-2046
DISPATCH-1679: fix qd_connector_t leak
DISPATCH-1917: fix race when accessing connector->conn_msg buffer

This closes apache#1176

(cherry picked from commit 8545a42)
@codecov-commenter
Copy link

Codecov Report

Merging #1187 (2e977ca) into main (22689e4) will decrease coverage by 0.01%.
The diff coverage is 87.84%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1187      +/-   ##
==========================================
- Coverage   84.38%   84.36%   -0.02%     
==========================================
  Files         112      113       +1     
  Lines       27667    28001     +334     
==========================================
+ Hits        23346    23623     +277     
- Misses       4321     4378      +57     
Impacted Files Coverage Δ
src/alloc_pool.c 93.68% <ø> (ø)
src/adaptors/tcp_adaptor.c 69.94% <66.66%> (-0.59%) ⬇️
tests/threaded_timer_test.c 84.89% <84.89%> (ø)
src/connection_manager.c 89.45% <88.88%> (-0.68%) ⬇️
src/server.c 86.57% <89.24%> (-0.23%) ⬇️
src/timer.c 96.85% <96.29%> (+3.37%) ⬆️
src/adaptors/http1/http1_adaptor.c 83.60% <100.00%> (+0.10%) ⬆️
src/adaptors/http1/http1_server.c 84.86% <100.00%> (-0.03%) ⬇️
src/dispatch.c 83.80% <100.00%> (+0.07%) ⬆️
src/message.c 86.59% <100.00%> (ø)
... and 14 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 22689e4...2e977ca. Read the comment docs.

@kgiusti
Copy link
Contributor Author

kgiusti commented May 6, 2021

Wrong branch as base... closing and re-submitting PR

@kgiusti kgiusti closed this May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants