src/java.net.http/share/classes/jdk/internal/net/http/Http1Exchange.java
branchhttp-client-branch
changeset 56165 8a6065d830b9
parent 56092 fd85b2bf2b0d
child 56204 e5d0c20217a3
equal deleted inserted replaced
56164:4db4bec0e5bb 56165:8a6065d830b9
   475 
   475 
   476         synchronized (lock) {
   476         synchronized (lock) {
   477             if (dp.throwable != null) {
   477             if (dp.throwable != null) {
   478                 state = State.ERROR;
   478                 state = State.ERROR;
   479                 exec.execute(() -> {
   479                 exec.execute(() -> {
   480                     connection.close();
       
   481                     headersSentCF.completeExceptionally(dp.throwable);
   480                     headersSentCF.completeExceptionally(dp.throwable);
   482                     bodySentCF.completeExceptionally(dp.throwable);
   481                     bodySentCF.completeExceptionally(dp.throwable);
       
   482                     connection.close();
   483                 });
   483                 });
   484                 return dp;
   484                 return dp;
   485             }
   485             }
   486 
   486 
   487             switch (state) {
   487             switch (state) {