File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
src/java.net.http/share/classes/jdk/internal/net/http Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -237,8 +237,7 @@ int getConnectionWindowSize(SettingsFrame clientSettings) {
237
237
238
238
// The default is the max between the stream window size
239
239
// and the connection window size.
240
- int defaultValue = Math .min (Integer .MAX_VALUE ,
241
- Math .max (streamWindow , K *K *32 ));
240
+ int defaultValue = Math .max (streamWindow , K *K *32 );
242
241
243
242
return getParameter (
244
243
"jdk.httpclient.connectionWindowSize" ,
Original file line number Diff line number Diff line change @@ -489,7 +489,6 @@ public void accept(ByteBuffer b) {
489
489
debug .log ("already closed: " + closedExceptionally );
490
490
return ;
491
491
}
492
- boolean completed = false ;
493
492
try {
494
493
if (debug .on ())
495
494
debug .log ("Parser got %d bytes " , b .remaining ());
@@ -506,9 +505,7 @@ public void accept(ByteBuffer b) {
506
505
} catch (Throwable t ) {
507
506
if (debug .on ()) debug .log ("Unexpected exception" , t );
508
507
closedExceptionally = t ;
509
- if (!completed ) {
510
- onComplete .accept (t );
511
- }
508
+ onComplete .accept (t );
512
509
}
513
510
}
514
511
You can’t perform that action at this time.
0 commit comments