http-client-branch: review comment: set connected for immediate non-blocking connect http-client-branch
authorchegar
Wed, 29 Nov 2017 16:34:52 +0000
branchhttp-client-branch
changeset 55911 d3298b9365e7
parent 55910 9b2f7e9e95a2
child 55912 dfa9489d1cb1
http-client-branch: review comment: set connected for immediate non-blocking connect
src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/PlainHttpConnection.java
--- a/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/PlainHttpConnection.java	Wed Nov 29 14:27:12 2017 +0300
+++ b/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/PlainHttpConnection.java	Wed Nov 29 16:34:52 2017 +0000
@@ -115,6 +115,7 @@
             }
             if (finished) {
                 debug.log(Level.DEBUG, "connect finished without blocking");
+                connected = true;
                 cf.complete(null);
             } else {
                 debug.log(Level.DEBUG, "registering connect event");