Fixes JETTY-1335 (HttpClient's SelectConnector clean-up)

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2816 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Simone Bordet 2011-02-22 11:10:37 +00:00
parent 0ace68632c
commit 373574cbcc
3 changed files with 5 additions and 5 deletions

View File

@ -118,11 +118,11 @@ public class HttpClient extends HttpBuffers implements Attributes
/* ------------------------------------------------------------------------------- */ /* ------------------------------------------------------------------------------- */
/** /**
* @param blockingConnects True if connects will be in blocking mode. * @param connectBlocking True if connects will be in blocking mode.
*/ */
public void setAsyncConnects(boolean blockingConnects) public void setConnectBlocking(boolean connectBlocking)
{ {
_connectBlocking = blockingConnects; _connectBlocking = connectBlocking;
} }
/* ------------------------------------------------------------------------------- */ /* ------------------------------------------------------------------------------- */

View File

@ -19,7 +19,7 @@ public class AsyncSelectConnectionTest extends AbstractConnectionTest
{ {
HttpClient httpClient = new HttpClient(); HttpClient httpClient = new HttpClient();
httpClient.setConnectorType(HttpClient.CONNECTOR_SELECT_CHANNEL); httpClient.setConnectorType(HttpClient.CONNECTOR_SELECT_CHANNEL);
httpClient.setAsyncConnects(true); httpClient.setConnectBlocking(false);
return httpClient; return httpClient;
} }
} }

View File

@ -19,7 +19,7 @@ public class SelectConnectionTest extends AbstractConnectionTest
{ {
HttpClient httpClient = new HttpClient(); HttpClient httpClient = new HttpClient();
httpClient.setConnectorType(HttpClient.CONNECTOR_SELECT_CHANNEL); httpClient.setConnectorType(HttpClient.CONNECTOR_SELECT_CHANNEL);
httpClient.setAsyncConnects(false); httpClient.setConnectBlocking(true);
return httpClient; return httpClient;
} }
} }