Issue #362 (Very slow page load and missing resources when using HTTP/2 with Jetty 9.3.7)

The issue happened when the selector was both read ready and write
ready. In that case fillable() was called before completeWrite(),
causing the reader thread to read, parse, call the application which
performed a blocking write, thus never returning to call
completeWrite().

Inverting the calls (first completeWrite() then fillable()) solves
the issue because completeWrite() never calls application code.
This commit is contained in:
Simone Bordet 2016-03-01 22:08:02 +01:00
parent a8bbe8749f
commit 7e7b126847
1 changed files with 5 additions and 5 deletions

View File

@ -118,8 +118,8 @@ public class SelectChannelEndPoint extends ChannelEndPoint implements ManagedSel
@Override
public void run()
{
getFillInterest().fillable();
getWriteFlusher().completeWrite();
getFillInterest().fillable();
}
@Override