[Bug 65460] http2 request hang on request read

2021-07-23 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=65460

--- Comment #15 from dpy1123  ---
c(In reply to Mark Thomas from comment #14)
> Found it. There is a regression in the previous release.
> 
> If using async IO (available and default in 9.x and 10.x) small updates to
> the connection flow control window were dropped. The window slowly reduced
> in size until no more data could be read.
> 
> If not using async IO, small updates to the connection flow control window
> are written but not flushed so at worst, you'll see a small delay.
> 
> Setting overheadWindowUpdateThreshold="0" avoids the issue with or without
> async IO.
> 
> Fixed in:
> - 10.1.x for 10.1.0-M3 onwards
> - 10.0.x for 10.0.9 onwards
> - 9.0.x for 9.0.51 onwards
> - 8.5.x for 8.5.70 onwards

cool~ looking forward to next release.
Thx for helping~

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 65460] http2 request hang on request read

2021-07-23 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=65460

Mark Thomas  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #14 from Mark Thomas  ---
Found it. There is a regression in the previous release.

If using async IO (available and default in 9.x and 10.x) small updates to the
connection flow control window were dropped. The window slowly reduced in size
until no more data could be read.

If not using async IO, small updates to the connection flow control window are
written but not flushed so at worst, you'll see a small delay.

Setting overheadWindowUpdateThreshold="0" avoids the issue with or without
async IO.

Fixed in:
- 10.1.x for 10.1.0-M3 onwards
- 10.0.x for 10.0.9 onwards
- 9.0.x for 9.0.51 onwards
- 8.5.x for 8.5.70 onwards

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 65460] http2 request hang on request read

2021-07-23 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=65460

Mark Thomas  changed:

   What|Removed |Added

Summary|http2 request hang with |http2 request hang on
   |tomcat 9.0.50's overhead|request read
   |protection  |

--- Comment #13 from Mark Thomas  ---
I'm as sure as I can be this isn't overhead protection related.

The HTTP/2 streams are blocked, waiting to receive data. If the overhead
protection had been triggered, these streams would have been closed. The
exceptions in the logs are also consistent with request reads timing out.

What isn't yet clear is the root cause. Possibilities are:
1. The client isn't sending data. Unlikely given the issue started after the
move from 9.0.45 to 9.0.50.
2. The data is being received but the stream isn't being notified. Unlikely as
there have been no changes in this specific area.
3. Window updates are not being sent correctly. Seems the most likely candidate
at this point as there are changes for this in 9.0.49.

I was about to suggest a couple of things to try to collect more data. As part
of that I was checking exactly what debug logging is provided for Window
updates and I managed to recreate the issue.

I'm investigating now but setting overheadWindowUpdateThreshold="0" seems to
work around the issue.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org