src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/Http1Exchange.java
branchhttp-client-branch
changeset 56040 f8eabb9a5c0f
parent 55973 4d9b002587db
child 56041 b4b5e09ef3cc
equal deleted inserted replaced
56039:01739771e48b 56040:f8eabb9a5c0f
     1 /*
     1 /*
     2  * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   594                 if (cancelled)
   594                 if (cancelled)
   595                     return;  //no-op
   595                     return;  //no-op
   596                 demand.increase(n);
   596                 demand.increase(n);
   597                 debug.log(Level.DEBUG,
   597                 debug.log(Level.DEBUG,
   598                         "subscription request(%d), demand=%s", n, demand);
   598                         "subscription request(%d), demand=%s", n, demand);
   599                 writeScheduler.deferOrSchedule(client.theExecutor());
   599                 writeScheduler.runOrSchedule(client.theExecutor());
   600             }
   600             }
   601 
   601 
   602             @Override
   602             @Override
   603             public void cancel() {
   603             public void cancel() {
   604                 debug.log(Level.DEBUG, "subscription cancelled");
   604                 debug.log(Level.DEBUG, "subscription cancelled");