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:
parent
0ace68632c
commit
373574cbcc
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------------- */
|
/* ------------------------------------------------------------------------------- */
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue